How to move the focus when the dialog is dismissed? #3297
Unanswered
Ignacio-de-Loyola
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
Normally closing a dialog moves the focus to the button that caused the dialog.
However, I want the focus to move to a specific area when I select the "Confirm" button in the dialog.
If I explicitly rename the "Confirm" button to something like "Go to OO", isn't it an accessibility error even if the focus moves when closing the dialog? (2.4.3 Focus Order or 3.3.2 On Input)
Should focus be sent to the element that triggered, as stated in the "Modal Dialog Example" of the ARIA Authoring documentation below?
(Image alt text : when it closes, the user's point of regard is maintained by returning focus to the element that triggered display of the dialog.)
Beta Was this translation helpful? Give feedback.
All reactions