fix(a11y): hide mobile sidebar drawer from AT when closed (MAPPS-285) #291
No reviewers
Labels
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
psa-systems/mokosh-apps!291
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/MAPPS-285-duplicate-sidebar-nav"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The off-canvas mobile drawer was always in the DOM, slid out via
-translate-x-fullfor the slide-in animation.lg:hiddenremoved it from the accessibility tree at the lg+ breakpoint (CSSdisplay: none), but at smaller viewports the drawer was still semantically visible: a screen-reader user heard the whole nav menu a second time after the desktop sidebar at the breakpoint edge, and tabbed through duplicate links. Bindaria-hiddentoopenso the drawer is exposed to assistive tech only while the user has actually opened it. The desktop sidebar'shidden lg:flexalready covers the inverse case viadisplay: none. Same pattern Material UI'sDrawerand HeadlessUI'sDialog.Paneluse.#MAPPS-285