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
[ampproject/amphtml] ♿ [Story a11y] Accessible close button in share menu and Twitter overlay #32863
Conversation
Hey @gmajoulet, @newmuis, @Enriqe! These files were changed:
|
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.
Thanks! This looks good
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.
We need to keep/add role=button
to our buttons otherwise they might trigger page navigation.
I'm not sure if the bug happens in these use cases as they might be covered by other if() statements in our code (shadow DOM/embed special case), but we should keep them for consistency across the codebase.
We'll move away from this at some point in the near future but for now let's keep them.
Contributes to #32493
Applies same pattern for close button in share menu and Twitter overlay.
button
elementaria-label