cengage / react-magma

https://react-magma.cengage.com
MIT License
21 stars 12 forks source link

Drawer - Focus not trapped properly when open #1241

Open orion-cengage opened 4 months ago

orion-cengage commented 4 months ago

CENG_3326

Docs: https://react-magma.cengage.com/version/4.3.0/api/drawer/

Success Criteria: https://www.w3.org/WAI/WCAG21/Understanding/focus-order

In all drawers, the keyboard focus is trapped within the modal in both directions except for the navigation drawer, Here, the focus is trapped when tabbing forward, but when tabbing backward (Shift+Tab) the focus moves into the page behind the drawer.

(Note that the inverse view of the navigation drawer does trap the focus in both directions.)

Ensure that the keyboard focus remains trapped within the navigation drawer when users press Shift+Tab to move the focus backward.

silvalaura commented 4 months ago

Wonder if this is related to https://github.com/cengage/react-magma/issues/970 in some way?