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

A11y: menu toggle button needs a :focus halo #195

Closed
jenlampton opened this issue Mar 16, 2022 · 2 comments
Closed

A11y: menu toggle button needs a :focus halo #195

jenlampton opened this issue Mar 16, 2022 · 2 comments

Comments

@jenlampton
Copy link

Hello and thank you again for this fantastic library.

I am once again trying to make the navigation experience as accessible as possible. I received some feedback that our menu toggle button does not receive the appropriate :focus halo when tabbing through the page on mobile. A sighted user navigating our site with the keyboard can't see when the hamburger menu is active, so they don't know when they can use the spacebar to open the menu to see items within.

I can see this problem on https://www.smartmenus.org also.

Some quick research shows that label is not a focusable element, but there are some recommendations on how to get the label to respond to a nearby input on stack exchange.

We're going to give this a try. If it works, would you be open to making a similar change to the library in a future release?

@jenlampton jenlampton changed the title menu toggle button needs a :focus halo A11y: menu toggle button needs a :focus halo Jun 27, 2022
@vadikom
Copy link
Owner

vadikom commented Sep 2, 2022

You could now give the following solution a try if you like:

#137 (comment)

The toggle button should be focusable and also work just fine when JS support is disabled.

@jenlampton
Copy link
Author

Great, I'll close this issue in favor of that solution.

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