-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement dialog initial focus proposal
This implements the changes proposed here: https://github.com/whatwg/html/wiki/dialog--initial-focus,-a-proposal#dialog-draft-text Specifically: 1. Make the dialog focusing steps look at sequentially focusable elements instead of any focusable element. 2. Make the dialog element itself get focus if it has the autofocus="" attribute set. 3. Make the dialog element itself get focus as a fallback instead of focus being reset to the body element. Closes #1929. Closes #2197. Closes #4184. Additional dialog issues remain open at https://github.com/whatwg/html/labels/topic%3A%20dialog.
- Loading branch information
1 parent
e3c56ca
commit a9f103c
Showing
1 changed file
with
112 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a9f103c
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.
Can someone please help understand if this proposal is ever accepted and we can set autofocus="" in the dialog element itself?
Make the dialog element itself get focus if it has the autofocus="" attribute set.