Open umbrabot opened 2 years ago
I've created a PR to resolve this issue here: https://github.com/umbraco/Umbraco-CMS/pull/13093
Can be closed as per merge of PR 13093
We need to keep this one open since clicking the "Close" icon (x) does not set the tab focus back on the triggering element. However closing the modal/lightbox using the ESC key works :-)
Moving this to 'in progress' until we can confirm resolved.
Open package (Umbraco forms) - Open printscreen modal - closing modal returns keyboard focus to the top of the page
Steps to replicate:
Issue: Closing content: Closing revealed content must return input focus to the component that revealed it
Why it matters: When a keyboard user dismisses revealed content (such as closing a menu or dialog), they expect focus to return to the trigger control that launched the content. Otherwise, they will have to explore the page content to re-orient themselves.
How to fix:
W3 reference: https://www.w3.org/WAI/WCAG21/Understanding/focus-order.html