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

[Bug Report][3.5.16] Indeterminate checkbox aria-checked doesn't match control value #19647

Open
justingish opened this issue Apr 18, 2024 · 0 comments

Comments

@justingish
Copy link

Environment

Vuetify Version: 3.5.16
Vue Version: 3.4.23
Browsers: Chrome 124.0.0.0
OS: Mac OS 10.15.7

Steps to reproduce

Inspect the checkbox element

Expected Behavior

Since it is using a native HTML checkbox control, no aria-checked attribute should be present.

Actual Behavior

The checkbox control has aria-checked set to 'mixed' which doesn't match the native control's value.

Reproduction Link

https://play.vuetifyjs.com/#...

Other comments

MDN article about aria checkbox role.

When using a native html checkbox, you should not need the role or aria-checked attributes. Because the VCheckbox does use the aria-checked attribute, it causes a mismatch between the control's value and the aria-checked value.

I suggest simply removing aria-checked from the control.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant