Skip to content

Commit

Permalink
fix: fixes a11y violation in ExpandedSearch (#18203)
Browse files Browse the repository at this point in the history
* fix: fixes a11y violation in ExpandedSearch

* chore:  yarn dedupe

---------

Co-authored-by: Taylor Jones <[email protected]>
  • Loading branch information
2nikhiltom and tay1orjones authored Dec 10, 2024
1 parent 65b67a8 commit 9241275
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react/src/components/Search/Search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ const Search = React.forwardRef<HTMLInputElement, SearchProps>(function Search(
{/* eslint-disable-next-line jsx-a11y/click-events-have-key-events */}
<div
aria-label={onExpand ? 'button' : undefined}
aria-labelledby={onExpand ? uniqueId : undefined}
aria-labelledby={onExpand ? searchId : undefined}
role={onExpand ? 'button' : undefined}
className={`${prefix}--search-magnifier`}
onClick={onExpand}
Expand Down

0 comments on commit 9241275

Please sign in to comment.