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

Update navbar docs #3629

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

aleavikraman
Copy link

This is a documentation fix.

for browser accessibility support the hamburger menu should be a button. An anchor is for navigation, a button is for an action like a toggle. Semantic HTML should be used whenever possible.

Proposed solution

Currently the hamburger menu shows an anchor tag for the button which does not allow for it to be focusable out of the box. It should be a button tag because it's performing an action and not navigating the user to a new page.
You can read more about the difference between anchor tags and buttons here

Tradeoffs

Testing Done

None.

Changelog updated?

No.

for browser accessibility support the hamburger menu should be a button. An anchor is for navigation, a button is for an action like a toggle.
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

Successfully merging this pull request may close these issues.

None yet

1 participant