Skip to content

Commit ec51132

Browse files
committed
feat: ✨ Ajoute possibilité icone seule dans menu header
1 parent 7d23207 commit ec51132

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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)