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:
Hob Adams 2020-07-28 11:08:40 +01:00 committed by GitHub
parent a1db6f7d75
commit 33bb9087cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -81,6 +81,7 @@ function DocSearch(props) {
onFocus={importDocSearchModalIfNeeded}
onMouseOver={importDocSearchModalIfNeeded}
onClick={onOpen}
aria-label="Search"
/>
{isOpen &&