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

show_dropdown aria-expanded applied to wrong element #56

Open
LostKobrakai opened this issue Oct 23, 2022 · 0 comments
Open

show_dropdown aria-expanded applied to wrong element #56

LostKobrakai opened this issue Oct 23, 2022 · 0 comments

Comments

@LostKobrakai
Copy link

Currently show_dropdown() applies aria-expanded to the toggled dropdown element instead of the button toggling the dropdown.

There are several widgets that can be expanded and collapsed, including menus, dialogs, and accordion panels. Each of these objects, in turn, has an interactive element that controls their opening and closing. The aria-expanded attribute is applied to this focusable, interactive control that toggles the visibility of the object.

https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-expanded

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