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

The attribute aria-expanded is not supported by the role menuitem. #630

Closed
jlurena opened this issue Aug 14, 2019 · 2 comments
Closed

The attribute aria-expanded is not supported by the role menuitem. #630

jlurena opened this issue Aug 14, 2019 · 2 comments
Assignees

Comments

@jlurena
Copy link

jlurena commented Aug 14, 2019

A menu item, acting as a submenu given a role of menuitem should have an aria-expanded attribute. I am being thrown an error when I do this.

Something like this raises an error:

<ul role="menubar">
  <li>
    <a role="menuitem" aria-expanded="false" href="someurl.com">Some URL</a>
      <ul role="menu">
        <li><a href="https://google.com">Google.com</a></li>
        <li><a href="https://github.com">Github.com</a></li>
      </ul>
  </li>
</ul>

The attribute aria-expanded is not supported by the role menuitem.

According to w3c/aria#454 this is valid aria spec.

This is also shown on an example on W2
https://www.w3.org/TR/wai-aria-practices/examples/menubar/menubar-1/menubar-1.html

@Semigradsky
Copy link

Any progress here?

@jessebeach
Copy link
Collaborator

This error does not occur in v6.3.x.

jessebeach_jessebeach-mbp____code_evcohen_eslint-plugin-jsx-a11y

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

3 participants