react-magma icon indicating copy to clipboard operation
react-magma copied to clipboard

Drawer - Wrong focus after closing

Open orion-cengage opened this issue 1 year ago • 1 comments

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.

orion-cengage avatar Apr 11 '24 19:04 orion-cengage

Maybe related to https://github.com/cengage/react-magma/issues/970?

silvalaura avatar Apr 15 '24 14:04 silvalaura