react-magma
react-magma copied to clipboard
Drawer - Wrong focus after closing
CENG_3325
Docs: https://react-magma.cengage.com/version/4.3.0/api/drawer/
Success Criteria: https://www.w3.org/WAI/WCAG21/Understanding/focus-order
When any of the drawers are dismissed by pressing the Esc key or by activating the X (close) button in the dialog, the focus returns to the top of the page, rather than to the control that launched the modal.
When users dismiss the drawer/modal, always return the focus to the original control. Otherwise, both screen-reader and keyboard users will have to navigate back to the control to find their previous place on the page.
Maybe related to https://github.com/cengage/react-magma/issues/970?