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

Tabs are inaccessible to keyboard and screen reader users #6

Open
schne324 opened this issue Aug 1, 2024 · 0 comments
Open

Tabs are inaccessible to keyboard and screen reader users #6

schne324 opened this issue Aug 1, 2024 · 0 comments

Comments

@schne324
Copy link
Member

schne324 commented Aug 1, 2024

Refer to the ARIA Authoring Practices Guide: https://www.w3.org/WAI/ARIA/apg/patterns/tabs/examples/tabs-automatic/

  • Right Arrow (key === "ArrowRight"):
    • Moves focus to the next tab.
    • If focus is on the last tab, moves focus to the first tab.
    • Activates the newly focused tab.
  • Left Arrow (key === "ArrowLeft"):
    • Moves focus to the previous tab.
    • If focus is on the first tab, moves focus to the last tab.
    • Activates the newly focused tab.

Dev Notes

The code changes for this fix should be done in tabs.js within the keydown listener towards the bottom of the file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant