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: aria-controls references an ID that doesn't exist #53

Open
adamjohnson opened this issue Dec 7, 2020 · 0 comments
Open

Comments

@adamjohnson
Copy link

Steps to reproduce the issue

  1. View the demo.
  2. Shrink the Priority+ navigation so that "More" is displayed.
  3. Right click "More" > Inspect Element.

Results

  1. The <button> tag has aria-controls="menu", like so:
<button aria-controls="menu" class="nav__dropdown-toggle priority-nav__dropdown-toggle priority-nav-is-visible" prioritynav-count="1">more</button>

Expected results

The <ul> below the <button> should have id="menu". Currently, it does not.

<ul aria-hidden="true" class="nav__dropdown priority-nav__dropdown">
  ...
</ul>

aria-controls documentation/references:

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