Skip to content
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

Added support for aria labels in IconButtons & aria roles in menus #3370

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

dsaw
Copy link

@dsaw dsaw commented Mar 6, 2025

The dropdown menus on Mobile navbar had no roles,labels. Currently, the roles are updated as per ARIA guidelines (menu). The snapshot of MobileNav is also updated with the change in markup. Fixes the lack of description when accessibility readers are processing the menu button.
(ARIA guidelines for menu- https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/menu_role)

Fixes #3369
There seems to be a fair amount of work required to improve accessibility, this fixes related issues in one file (MobileNav). Will be thinking about how to extend this to fix rrelated issues in a more streamlined manner and verify it properly.

TODO: need to add translations for the labels?

cc would appreciate feedback @espin

Changes:

I have verified that this pull request:

  • [ x] has no linting errors (npm run lint)
  • [ x] has no test errors (npm run test)
  • [ x] is from a uniquely-named feature branch and is up to date with the develop branch.
  • [x ] is descriptively named and links to an issue number, i.e. Fixes #123

The dropdown menus on Mobile navbar had no roles,labels. Currently, the
roles are updated as per ARIA guidelines (menu). The snapshot of
MobileNav is also updated with the change in markup. Fixes the lack of
description when accessibility readers are processing the button.
Copy link

welcome bot commented Mar 6, 2025

🎉 Thanks for opening this pull request! Please check out our contributing guidelines if you haven't already.

@raclim raclim added the Area:Accessibility Category for accessibility related features and bugs label Mar 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area:Accessibility Category for accessibility related features and bugs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

More icon button in Navbar on Mobile has no aria tags
3 participants