Skip to content

Commit

Permalink
Merge pull request responsible-ai-collaborative#901 from lmcnulty/a11…
Browse files Browse the repository at this point in the history
…y-landing-page-search-aria-label

Add aria-label to quicksearch
  • Loading branch information
cesarvarela authored Aug 5, 2022
2 parents c73f630 + 5884ec4 commit 52142d5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions site/gatsby-site/src/components/forms/SearchInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export default withTranslation()(function SearchInput({
size = 'sm',
t,
placeHolder = t('Type Here'),
...props
}) {
return (
<InputGroup className="position-relative">
Expand All @@ -44,6 +45,7 @@ export default withTranslation()(function SearchInput({
value={value}
onKeyPress={onKeyPress}
onChange={(event) => onChange(event.currentTarget.value)}
{...props}
/>
<SearchStatus>
{value !== '' ? (
Expand Down
1 change: 1 addition & 0 deletions site/gatsby-site/src/components/landing/QuickSearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ export default function QuickSearch({ className }) {
onKeyPress={(e) => {
e.key === 'Enter' && submit(e);
}}
aria-label={t('Search over 1600 reports of AI harms')}
/>
</SearchInputWrapper>
<Row>
Expand Down

0 comments on commit 52142d5

Please sign in to comment.