-
Notifications
You must be signed in to change notification settings - Fork 159
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
fix(masthead): remove aria-haspopup from profile menu for VO #9562
fix(masthead): remove aria-haspopup from profile menu for VO #9562
Conversation
Hi @Gopi916 I'm wondering if it is okay to remove the |
Deploy preview created for package Built with commit: e99d928a483026f9dccd555da906d1231349f389 |
Deploy preview created for package Built with commit: e99d928a483026f9dccd555da906d1231349f389 |
Deploy preview created for package Built with commit: e99d928a483026f9dccd555da906d1231349f389 |
Deploy preview created for package Built with commit: e99d928a483026f9dccd555da906d1231349f389 |
Deploy preview created for package Built with commit: e99d928a483026f9dccd555da906d1231349f389 |
@annawen1 |
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.
LGTM!
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.
LGTM!
Related Ticket(s)
[Masthead]: QA: Voiceover does not announce whether the profile pop up menu is expanded or collapsed #8869
Description
In mobile, VO doesn't tell user if the profile menu is expanded or collapsed - it currently identifies that it is a popup button when focus is on the button:
"user profile popup-button menu-popup double tap to activate picker"
however, this same is announced when the profile menu is expanded so it is not descriptive enough to alert user if the menu has been expanded or collapsed.
In researching, it seems that VO will not announce the
aria-expanded
attribute if the button element also has thearia-haspopup
attribute. Removing thearia-haspopup
attribute allows for VO to properly announce if the menu is expanded or not. VO then reads:"user profile button expanded"
BEFORE:
https://user-images.githubusercontent.com/54281166/195444988-d18f97de-2bec-4aed-8873-bf0073a03d73.mov
AFTER:
https://user-images.githubusercontent.com/54281166/195445097-afefd854-800e-4d8a-bc54-e30f0e90b2a8.mov
Changelog
Removed
aria-haspopup
attribute so that VO can alert user if profile menu is expanded/collapsed