Skip to content

Commit

Permalink
fix: a11y: adds css to hide search clear button that causes accessibi…
Browse files Browse the repository at this point in the history
…lity issues (#2467)

Co-authored-by: John Gedeon <john@truss.works>
  • Loading branch information
shkeating and gidjin authored Jul 6, 2023
1 parent 69c17e6 commit d19527f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/styles/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,9 @@
.usa-tooltip__body {
opacity: 0;
}

// This fixes a chromium browser bug that causes accessibility issues in the search field
// It can be removed when https://github.com/uswds/uswds/issues/5277 is fixed
.usa-search [type='search']::-webkit-search-cancel-button {
display: none;
}

0 comments on commit d19527f

Please sign in to comment.