Focus the dialog element instead of the first focusable item as the default behaviour
Categories
(Core :: DOM: Core & HTML, task, P2)
Tracking
()
People
(Reporter: sefeng, Assigned: sefeng)
References
(Blocks 1 open bug)
Details
(Whiteboard: [fxp])
Attachments
(1 file)
We believe having the default focus to be the dialog itself is an improvement to accessibility to provide consistent behaviours for our users.
There's a already a spec PR for it https://github.com/whatwg/html/pull/2197/files https://github.com/whatwg/html/pull/4184. Let's see if we can make it happen.
Comment 1•3 years ago
|
||
There is also https://github.com/whatwg/html/pull/4184 which would make this the default behaviour without changing the showModal API.
Assignee | ||
Comment 2•3 years ago
|
||
Oh yeah, Thanks! I linked to the wrong PR in the description. Let's try to make https://github.com/whatwg/html/pull/4184 happens, then we don't need https://github.com/whatwg/html/pull/2197/.
Assignee | ||
Comment 3•3 years ago
|
||
Instead of focusing the first focusable element, which may be any
element, having the focus to be the dialog itself is an improvement to
accessibility to provide consistent behavior for our uses.
See https://github.com/whatwg/html/pull/4184 for details.
Updated•3 years ago
|
Updated•3 years ago
|
Comment 4•3 years ago
|
||
There's a r+ patch which didn't land and no activity in this bug for 2 weeks.
:sefeng, could you have a look please?
For more information, please visit auto_nag documentation.
Updated•3 years ago
|
Comment 5•3 years ago
|
||
(I don't think this needs my attention)
Assignee | ||
Comment 6•3 years ago
|
||
I don't think I need to keep this needinfo..just need to resolve https://github.com/whatwg/html/pull/4184
Updated•3 years ago
|
Comment 7•1 year ago
|
||
:sefeng this is currently blocking https://mozilla-hub.atlassian.net/browse/FXP-839 from being closed, is there anything more to do? Should we remove it as a subtask?
Assignee | ||
Comment 8•1 year ago
|
||
Ah okay, so we need to get bug 1811129 implemented (I'll do that), then this one should be resolved.
Updated•1 year ago
|
Assignee | ||
Comment 10•4 months ago
|
||
Yeah!
Description
•