Skip to content

Commit cfd4b33

Browse files
authored
Merge pull request #309 from m-maillot/fix/accessible-error
fix(header): define an aria-label on the input search button for accessibility
2 parents 1a065b5 + 6495ff2 commit cfd4b33

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Header/Header.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,7 @@ export const Header = memo(
366366
<div
367367
className={fr.cx("fr-header__search", "fr-modal")}
368368
id={searchModalId}
369+
aria-labelledby={`${id}-search-bar-button`}
369370
>
370371
<div
371372
className={fr.cx(

0 commit comments

Comments
 (0)