Skip to content

fix role "switch" requiring "aria-checked" when used with native input element #1071

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 2 commits into from
Apr 24, 2024
Merged

Conversation

JoCa96
Copy link
Contributor

@JoCa96 JoCa96 commented Mar 25, 2024

Closes #932

As described in the issue #932 and the Switch ARIA pattern, the aria-checked attribute is not required when the target element is a native <input /> element with type="checkbox".

@vhoyer vhoyer merged commit 7395e00 into vue-a11y:main Apr 24, 2024
@hoonweiting
Copy link

Thank you for resolving the issue!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

role-has-required-aria-props warns about role="switch" missing aria-checked when used with native <input checked>
3 participants