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

fix: don't tab through all tablist items #8

Merged
merged 1 commit into from
Jun 28, 2024
Merged

fix: don't tab through all tablist items #8

merged 1 commit into from
Jun 28, 2024

Conversation

daelmaak
Copy link
Collaborator

Tab should only focus the active item in the tablist, second Tab should
move the focus to the next element in the document.

"When focus moves into the tab list, places focus on the active tab element.
When the tab list contains the focus, moves focus to the next element in
the page tab sequence outside the tablist, which is the tabpanel unless
the first element containing meaningful content inside the tabpanel is focusable."

https://www.w3.org/WAI/ARIA/apg/patterns/tabs/

Relates to PS-20252.

Tab should only focus the active item in the tablist, second Tab should
move the focus to the next element in the document.

"When focus moves into the tab list, places focus on the active tab element.
When the tab list contains the focus, moves focus to the next element in
the page tab sequence outside the tablist, which is the tabpanel unless
the first element containing meaningful content inside the tabpanel is focusable."

https://www.w3.org/WAI/ARIA/apg/patterns/tabs/

Relates to PS-20252.
@daelmaak daelmaak marked this pull request as ready for review June 27, 2024 14:46
@daelmaak daelmaak merged commit b6eb327 into main Jun 28, 2024
2 checks passed
@daelmaak daelmaak deleted the dan/fix-a11y branch June 28, 2024 07:01
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

Successfully merging this pull request may close these issues.

2 participants