Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accessibility: Mobile navigation does not trap focus (USWDS) #369

Open
aduth opened this issue Jul 1, 2020 · 2 comments
Open

Accessibility: Mobile navigation does not trap focus (USWDS) #369

aduth opened this issue Jul 1, 2020 · 2 comments

Comments

@aduth
Copy link

aduth commented Jul 1, 2020

For mobile users, or users who zoom the page to the point that mobile styles activate, the "Menu" button will present a dialog window for navigation and transition focus. However, focus is not constrained to the dialog and can escape to the rest of the page. This is in combination with a few other related issues noted below, all of which may not be specific to the Centers of Excellence website, but instead are inherited from its use of U.S. Web Design System.

Related issues:

Steps to Reproduce:

  1. Navigate to https://coe.gsa.gov/
  2. Shrink the page or zoom to the point that mobile styles activate
  3. Tab to the "Menu" button
  4. Click the "Menu" button by pressing Space
  5. Tab through the navigation items, and continue tabbing

Expected behavior: Tabbing is constrained to the navigation dialog.
Actual behavior: Tabbing escapes the dialog and continues to navigate the page.

Relevant Guidance:

https://www.w3.org/TR/wai-aria-practices/examples/dialog-modal/dialog.html

Tab [...] When focus is on the last focusable element in the dialog, moves focus to the first focusable element in the dialog.

Remediation Guidance:

USWDS mobile navigation does include focus trapping behavior (uswds/uswds#2347). It could be that this is not taking place because one of either:

  • An outdated version of USWDS is being used.
  • Improper usage of USWDS is preventing the behavior from taking effect.
@ryanwoldatwork
Copy link

I believe the update USWDS modal addresses this.

@aduth
Copy link
Author

aduth commented May 9, 2024

Yeah, I just tested this again and it's still an issue. I think the remediation guidance from my initial comment still holds true in terms of a resolution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants