-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
DOM: Limit single tabbable radio input by name #14128
Conversation
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.
From an accessibility perspective, works nicely. Tested on the Visibility panel: tabbing is now constrained within the panel. Wish there was a simpler way to solve it 😬 It's self container. Has test. Brilliant, thanks.
(will leave code review to the author himself 😉)
4949c79
to
956cf39
Compare
956cf39
to
2809765
Compare
@@ -30,6 +35,46 @@ function getTabIndex( element ) { | |||
export function isTabbableIndex( element ) { | |||
return getTabIndex( element ) !== -1; | |||
} | |||
/** |
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.
Nit: An empty line above maybe
2809765
to
2246544
Compare
2246544
to
7f9bbda
Compare
* DOM: Limit single tabbable radio input by name * DOM: Avoid consolidating unnamed radio inputs
* DOM: Limit single tabbable radio input by name * DOM: Avoid consolidating unnamed radio inputs
Closes #6988
This pull request seeks to enhance the behavior of
tabbables.find
to include only a single radio input for a given name, preferring the checked input, falling back to the first in the tabindex-sorted set.Testing Instructions:
Repeat both sets of Steps to Reproduce from #6988 (comment) , verifying the expected behavior.