Skip to content

Commit 118fc7d

Browse files
authored
Merge pull request #1068 from MaitreManuel/dsfr-header-burger-menu
DsfrHeader fixes sur les boutons Menu et recherche
2 parents 8d2502d + fcea1d0 commit 118fc7d

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

src/components/DsfrHeader/DsfrHeader.vue

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ const showMenu = () => {
8080
// Sans le setTimeout, le focus n'est pas fait
8181
setTimeout(() => {
8282
document.getElementById('close-button')?.focus()
83-
})
83+
}, 50)
8484
}
8585
const showSearchModal = () => {
8686
modalOpened.value = true
@@ -152,7 +152,11 @@ provide(registerNavigationLinkKey, () => {
152152
:title="showSearchLabel"
153153
:data-fr-opened="searchModalOpened"
154154
@click.prevent.stop="showSearchModal()"
155-
/>
155+
>
156+
<span class="fr-sr-only">
157+
{{ showSearchLabel }}
158+
</span>
159+
</button>
156160
<button
157161
v-if="isWithSlotNav || quickLinks?.length"
158162
id="button-menu"
@@ -164,7 +168,11 @@ provide(registerNavigationLinkKey, () => {
164168
:title="menuLabel"
165169
data-testid="open-menu-btn"
166170
@click.prevent.stop="showMenu()"
167-
/>
171+
>
172+
<span class="fr-sr-only">
173+
{{ menuLabel }}
174+
</span>
175+
</button>
168176
</div>
169177
</div>
170178
<div

0 commit comments

Comments
 (0)