[Navigation] Mobile navigation incorrect component pattern #3679
Labels
Category: Accessibility
Bugs found while using assistive technology
Category: Enhancement
New feature or request
Critical Path: 1
Affects all merchants/buyers
Effort: High
Severity: 3
Normal/Low Severity
Issue summary
The current implementation of the Dawn theme mobile navigation component generates a disclosure pattern (show/hide). Due to the visual affordance and design of the mobile navigation component being full height/width of the viewport, the current implementation could cause a frustration or confusing user experience.
Note: this issue was raised by a Shopify merchant during an accessibility audit.
Screenshots
Current code
Steps to reproduce
Behavior
Expected
Actual
Recommendation
aria-expanded
andaria-controls
attributes from thesummary
elementaria-modal="true"
,aria-label="Menu"
, androle="dialog"
to thediv#menu-drawer
elementaria-haspopup="dialog"
to thesummary
elementbutton
witharia-label="Close menu"
as the label inside thediv#menu-drawer
elementbutton
button
or Esc key pressWith this change, screen readers will announce the presence of a modal window upon activation, providing a more consistent and predictable user experience.
Recommended code
HTML
Specifications
The text was updated successfully, but these errors were encountered: