Skip to content

Commit

Permalink
feat(v2): add accessible label for Algolia search button (#3138)
Browse files Browse the repository at this point in the history
The button doesn't contain text which fails lighthouse a11y tests + isn't nice for screen readers.
  • Loading branch information
hobadams authored Jul 28, 2020
1 parent a1db6f7 commit 33bb908
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ function DocSearch(props) {
onFocus={importDocSearchModalIfNeeded}
onMouseOver={importDocSearchModalIfNeeded}
onClick={onOpen}
aria-label="Search"
/>

{isOpen &&
Expand Down

0 comments on commit 33bb908

Please sign in to comment.