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

aria-multiselectable is invalid in this context #37

Open
JacobDB opened this issue Jul 30, 2024 · 0 comments
Open

aria-multiselectable is invalid in this context #37

JacobDB opened this issue Jul 30, 2024 · 0 comments

Comments

@JacobDB
Copy link

JacobDB commented Jul 30, 2024

If you run a Lighthouse report on your own demo, you'll get this notice:

[aria-*] attributes do not match their roles

Each ARIA role supports a specific subset of aria-* attributes. Mismatching these invalidates the aria-*attributes. Learn how to match ARIA attributes to their roles.

Failing Elements

Lorem ipsum (autofocused) Lorem ipsum (default opened) Lorem ipsum dolor sit a…
<div class="handorgel default" id="handorgel1" aria-multiselectable="true">

Looking in to aria-multiselectable, I see that it's only valid on elements with these roles: grid, listbox, tablist, or tree. Additionally, the W3's accordion example doesn't include aria-multiselectable.

Can you please remove this attribute? From everything I've found, it seems unnecessary in this context, and one of my clients is complaining about this warning in Lighthouse. I know I could just disable multiselection, but that's not really the problem, the aria-multiselectable attribute appears to be unneeded either way.

JacobDB added a commit to JacobDB/handorgel that referenced this issue Aug 14, 2024
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