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

Fixes accessibility aria attributes #171

Merged
merged 1 commit into from
Oct 26, 2022
Merged

Fixes accessibility aria attributes #171

merged 1 commit into from
Oct 26, 2022

Conversation

chorstikus
Copy link
Contributor

addresses #121

When running lighthouse accessibility scan currently there is an issue with the [aria-*] attributes:

[aria-*] attributes do not match their roles
Each ARIA role supports a specific subset of aria-* attributes. Mismatching these invalidates the aria-* attributes. Learn more.

This PR moves the aria-* attributes from the dropdown controller element to the buttonTarget if there is one defined.

As mentioned in #121 the developer can/should manually add the aria-controls & aria-labelledby logic, menu and menuitem roles.

@excid3
Copy link
Owner

excid3 commented Oct 26, 2022

Thanks a bunch @chorstikus 👍

@excid3 excid3 merged commit b107b99 into excid3:master Oct 26, 2022
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.

None yet

2 participants