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

alter aria-expanded attributes for popover invokers #77

Merged
merged 5 commits into from
Mar 3, 2023

Conversation

keithamus
Copy link
Collaborator

@keithamus keithamus commented Mar 2, 2023

Native popover in Chrome exposes "expanded" accessibility info for popover invokers, which allows assistive technologies to know that the button will expand some kind of dialog or menu.

This PR adds aria-expanded=false on all popover invoker buttons that target an auto popover, during page load or insertion into the DOM, and when a popover becomes visible, it will toggle aria-expanded=true for all invokers of a visible popover.

jgerigmeyer

This comment was marked as resolved.

@keithamus

This comment was marked as resolved.

@keithamus
Copy link
Collaborator Author

This has been updated so that it sets aria-expanded on all button/input elements that are invokers for a popover=auto.

@keithamus
Copy link
Collaborator Author

@jgerigmeyer shall I add a version bump commit?

@jgerigmeyer
Copy link
Member

@jgerigmeyer shall I add a version bump commit?

Go ahead and merge -- I'll do a version bump and release this afternoon 👍

@keithamus keithamus merged commit 283690c into main Mar 3, 2023
@keithamus keithamus deleted the alter-aria-expanded-attributes-for-popover-invokers branch March 3, 2023 20:22
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

Successfully merging this pull request may close these issues.

2 participants