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

feat(menu): accessibility improvements to menu and menu item components #1464

Closed
wants to merge 7 commits into from

Conversation

d-rita
Copy link
Contributor

@d-rita d-rita commented Mar 18, 2024

Implements LIBS-556


Description

This feature improves the accessibility of the menu and menu components, i.e. MenuDivider, MenuItem, MenuSectionHeader.

  • It adds aria-roles to the different parts of the menu and its components
  • A user can use the Up and Down arrow keys to navigate through the list of menu items and focus them (except the menu section header and menu divider)
  • A user can use the Enter and Space keys to trigger actions attached to menu items (except the disabled ones). For example: opening a link, toggling a checkbox, opening a submenu, etc.
  • A user can use the Right arrow key to open a submenu and Left arrow key to close it.

Checklist

  • API docs are generated
  • Tests were added
  • Storybook demos were added

All points above should be relevant for feature PRs. For bugfixes, some points might not be relevant. In that case, just check them anyway to signal the work is done.


Screenshots

supporting text

- Use Up and Down arrows to move through menu items list
- Use Enter and Space keys to trigger a menu item in menu
@d-rita d-rita changed the base branch from master to alpha March 18, 2024 15:46
@dhis2-bot
Copy link
Contributor

dhis2-bot commented Mar 18, 2024

🚀 Deployed on https://pr-1464--dhis2-ui.netlify.app

@dhis2-bot dhis2-bot temporarily deployed to netlify March 18, 2024 16:00 Inactive
@kabaros kabaros changed the base branch from alpha to master April 25, 2024 09:34
@dhis2-bot dhis2-bot temporarily deployed to netlify April 30, 2024 04:41 Inactive
Copy link

cypress bot commented Apr 30, 2024

Passing run #3360 ↗︎

0 584 0 0 Flakiness 0

Details:

feat: refactor functionality to open and close submenus
Project: ui Commit: 9416c2f0ce
Status: Passed Duration: 06:48 💡
Started: May 7, 2024 9:55 AM Ended: May 7, 2024 10:01 AM

Review all test suite changes for PR #1464 ↗︎

@dhis2-bot dhis2-bot temporarily deployed to netlify May 4, 2024 23:13 Inactive
@d-rita d-rita marked this pull request as ready for review May 6, 2024 05:28
@d-rita d-rita requested a review from a team as a code owner May 6, 2024 05:28
@dhis2-bot dhis2-bot temporarily deployed to netlify May 6, 2024 05:29 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify May 7, 2024 09:52 Inactive
@tomzemp tomzemp requested a review from kabaros June 18, 2024 10:12
@d-rita
Copy link
Contributor Author

d-rita commented Jun 29, 2024

@d-rita d-rita closed this Jun 29, 2024
@d-rita d-rita deleted the LIBS-556/menus-accessibility branch July 2, 2024 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

3 participants