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

Closing mobile menu with ESC doesn't return focus to mobile menu button #73

Open
mrwweb opened this issue Oct 13, 2022 · 0 comments
Open

Comments

@mrwweb
Copy link

mrwweb commented Oct 13, 2022

When closing the mobile menu via the ESC key, focus remains on the link in the closed menu rather than being returned to the mobile menu open/close button.

  1. TAB to mobile menu and open it
  2. TAB into mobile menu
  3. Press ESC
  4. Press SHIFT + TAB to return back to menu (should be focused in Step 3) / document.activeElement in console shows the submenu link is focused

This feels separate but related to #72, although it's possible that fixing one will fix both.

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

1 participant