-
Notifications
You must be signed in to change notification settings - Fork 245
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
Tabables doesn't include anchors <a>
#181
Comments
Should be an easy fix.
FWIW there's been discussion that the official dialog should place focus at
the start of the dialog, rather than on a tabbable.
…On Thu., 25 Apr. 2019, 14:25 T Morehouse, ***@***.***> wrote:
The focus enforcement list of tabbale items ('button', 'input', 'keygen',
'select', 'textarea') should also include anchors with that have an href
attribute a[href]
https://github.com/GoogleChrome/dialog-polyfill/blob/8214290d1ebb1544cc8e11568d7c085ced0eff31/index.js#L244
Should probably be:
var opts = ['button', 'input', 'keygen', 'select', 'textarea', 'a[href]`];
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#181>, or mute the
thread
<https://github.com/notifications/unsubscribe-auth/AAA5DECDNVEH3OFUNW3VQB3PSEXC3ANCNFSM4HIJUM2A>
.
|
For ARIA accessibility, it is always best to focus the dialog element (when first opened), so the user has context of where they are, rather than being stranded on a tabable element, not knowing the context of where they are. And when tabbing through the dialog, it should cycle focus through the tabables, and when reacing hte end of the tabable list, cycle back to the first tabable (excluding the dialog). Shift tab on the first tabable (or dialog element) should focus the last tabable in the dialog. The enforce focus (for modal dialogs) can be implemented by adding a
Also, the list of tabables should be filtered for visibility (i.e. not |
I have made this PR solving this issue: #228 |
The focus enforcement list of tabbale items (
'button', 'input', 'keygen', 'select', 'textarea'
) should also include anchors with that have anhref
attributea[href]
dialog-polyfill/index.js
Line 244 in 8214290
Should probably be:
The text was updated successfully, but these errors were encountered: