Skip to content

Commit 9241275

Browse files
fix: fixes a11y violation in ExpandedSearch (#18203)
* fix: fixes a11y violation in ExpandedSearch * chore: yarn dedupe --------- Co-authored-by: Taylor Jones <[email protected]>
1 parent 65b67a8 commit 9241275

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react/src/components/Search/Search.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ const Search = React.forwardRef<HTMLInputElement, SearchProps>(function Search(
229229
{/* eslint-disable-next-line jsx-a11y/click-events-have-key-events */}
230230
<div
231231
aria-label={onExpand ? 'button' : undefined}
232-
aria-labelledby={onExpand ? uniqueId : undefined}
232+
aria-labelledby={onExpand ? searchId : undefined}
233233
role={onExpand ? 'button' : undefined}
234234
className={`${prefix}--search-magnifier`}
235235
onClick={onExpand}

0 commit comments

Comments
 (0)