-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add aria-haspopup to CircularOptionPicker component #25564
Conversation
@@ -64,6 +64,7 @@ function DropdownLinkAction( { | |||
renderToggle={ ( { isOpen, onToggle } ) => ( | |||
<Button | |||
aria-expanded={ isOpen } | |||
aria-haspopup="true" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've chosen true
as value instead of a more concrete one because 1) it's still valid as of ARIA 1.1 and 2) all the cases in which aria-haspopup
is present we used this value so far. Happy to set it to a different value.
Size Change: +8 B (0%) Total Size: 1.17 MB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Appears to work as intended, in my limited manual testing.
This PR adds the
aria-haspopup
property to the CircularOptionPicker component used in the ColorPalette and GradientPicker components.See #24796 for a detailed explanation.