Skip to content

Commit

Permalink
Merge pull request #5751 from ilzamcmed/LPS-205552
Browse files Browse the repository at this point in the history
fix(@clayui/picker): Update Picker markup with aria-controls
  • Loading branch information
pat270 authored Jan 17, 2024
2 parents 51a922b + c6e38b1 commit 1a0c2b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 1 addition & 3 deletions packages/clay-core/src/picker/Picker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -370,9 +370,7 @@ export function Picker<T extends Record<string, any> | string | number>({
<As
{...otherProps}
aria-activedescendant={active ? String(activeDescendant) : ''}
aria-controls={
active && isAppleDevice() ? ariaControls : undefined
}
aria-controls={active ? ariaControls : undefined}
aria-expanded={active}
aria-haspopup="listbox"
aria-owns={
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ exports[`Picker basic rendering renders open component by default 1`] = `
<div>
<button
aria-activedescendant="Apple"
aria-controls="clay-id-12"
aria-expanded="true"
aria-haspopup="listbox"
aria-owns="clay-id-12"
Expand Down

0 comments on commit 1a0c2b9

Please sign in to comment.