Closed
Override the default focus to the first form element in Overlay and Modal Dialog
Hello,
We have the following 508 recommendation:
1. Upon opening an overlay/modal dialog, set focus on the overlay/modal dialog heading.
Issue:
- When an overlay/modal dialog is displayed, we are running a function that sets keyboard focus on the heading, BUT because of OOTB behavior, the keyboard focus goes directly to the first form element in the overlay/modal dialog and then the heading (due to javascript function call).
- This is an issue because it causes the screen reader to announce the form element accessible information first and then followed by the heading information which can be confusing for screen reader users.
Is there a way to prevent/override the initial focus from going to the first form element in an overlay/modal dialog when initially opened/displayed?
***Edited by Moderator Marissa to update Capability tags****
To see attachments, please log in.