Skip to content

Commit 6e8892a

Browse files
authored
Merge pull request #87 from laruiss/fix/dsfr-header-menu
fix/dsfr header menu
2 parents 3ac628c + ec51132 commit 6e8892a

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/components/DsfrHeader/DsfrHeader.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
@click="showMenu"
3939
>
4040
<VIcon
41-
name="ri-menu-line"
41+
name="ri-menu-fill"
4242
/>
4343
</button>
4444
</div>
@@ -112,7 +112,7 @@
112112
/>
113113
</div>
114114
<div
115-
v-show="searchModalOpened"
115+
v-if="searchModalOpened"
116116
class="flex justify-center items-center"
117117
>
118118
<DsfrSearchBar

src/components/DsfrHeader/DsfrHeaderMenuLink.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,13 @@
1212
<VIcon
1313
v-if="icon"
1414
:name="icon"
15+
:label="iconOnly ? label : undefined"
1516
:class="{
1617
'icon-right': iconRight,
17-
'icon-left': !iconRight,
18+
'icon-left': !iconOnly && !iconRight,
1819
}"
1920
/>
20-
<span>{{ label }}</span>
21+
<span v-if="!iconOnly">{{ label }}</span>
2122
</component>
2223
</template>
2324

@@ -29,6 +30,7 @@ export default {
2930
type: String,
3031
default: '',
3132
},
33+
iconOnly: Boolean,
3234
iconRight: Boolean,
3335
icon: {
3436
type: String,

0 commit comments

Comments
 (0)