-
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 attribute to CustomGradientBar component #25571
Conversation
Size Change: +12 B (0%) Total Size: 1.17 MB
ℹ️ View Unchanged
|
@@ -105,6 +105,7 @@ function ControlPointButton( { | |||
color | |||
) } | |||
aria-describedby={ descriptionId } | |||
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.
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.
true
sounds fair to me, I can't see a better option.
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 tested this manually and it seems fine in my very limited a11y experience.
@@ -105,6 +105,7 @@ function ControlPointButton( { | |||
color | |||
) } | |||
aria-describedby={ descriptionId } | |||
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.
true
sounds fair to me, I can't see a better option.
This PR adds the
aria-haspopup
property to the CustomGradientBar component. See #24796 for a detailed explanation.