You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 22, 2022. It is now read-only.
Initial focus should be set to the first focusable element instead of the dialog element.
@jscholes: Placing focus on the close button is the correct behaviour if the dialog has an accessible name via aria-label or aria-labelledby, which every dialog should. So a screen reader will announce the name, the role of dialog, then the close button.
The focus priority should be as follows:
element with [autofocus]
first focusable element if it's in the beginning of the dialog (usually the close button)