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-expanded must be used on elements with the role "button" #16

Open
masi opened this issue Mar 8, 2023 · 0 comments
Open

aria-expanded must be used on elements with the role "button" #16

masi opened this issue Mar 8, 2023 · 0 comments

Comments

@masi
Copy link

masi commented Mar 8, 2023

Describe the bug
In the examples <a> is used with aria-expaned but without role="button".

To Reproduce
See documenation / web page.

Expected behavior

For proper a11y the aria-expanded attribute must be used on real buttons or elements with their role set to button.
Either add role="button" in the examples or us <button> instead of <a>.

Note: a button must be able to be triggerd by hitting the space key.

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