mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-31 15:29:32 +02:00
feat(v2): add accessible label for Algolia search button (#3138)
The button doesn't contain text which fails lighthouse a11y tests + isn't nice for screen readers.
This commit is contained in:
parent
a1db6f7d75
commit
33bb9087cf
1 changed files with 1 additions and 0 deletions
|
@ -81,6 +81,7 @@ function DocSearch(props) {
|
|||
onFocus={importDocSearchModalIfNeeded}
|
||||
onMouseOver={importDocSearchModalIfNeeded}
|
||||
onClick={onOpen}
|
||||
aria-label="Search"
|
||||
/>
|
||||
|
||||
{isOpen &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue