Skip to content

Commit

Permalink
fix(header): define an aria-label on the input search button for acce…
Browse files Browse the repository at this point in the history
…ssibility
  • Loading branch information
m-maillot committed Sep 16, 2024
1 parent caee6c1 commit aa92248
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,7 @@ export const Header = memo(
data-fr-opened={false}
aria-controls={searchModalId}
title={tSearchBar("label")}
aria-label={tSearchBar("label")}
>
{tSearchBar("label")}
</button>
Expand Down Expand Up @@ -366,6 +367,7 @@ export const Header = memo(
<div
className={fr.cx("fr-header__search", "fr-modal")}
id={searchModalId}
aria-labelledby={`${id}-search-bar-button`}
>
<div
className={fr.cx(
Expand Down

0 comments on commit aa92248

Please sign in to comment.