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] VSlider thumb missing aria label #19634

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

[Bug Report][3.5.16] VSlider thumb missing aria label #19634

justingish opened this issue Apr 17, 2024 · 0 comments

Comments

@justingish
Copy link

Environment

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

Steps to reproduce

Simply put a v-slider on your page and then inspect the rendered html of the slider thumb element.

Expected Behavior

The slider thumb should have an aria-label.

Actual Behavior

The slider thumb doesn't have an aria-label. It has all the other necessary aria attributes, but not the label.

Reproduction Link

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

Other comments

Missing the aria-label causes the slider to fail axe accessibility audits. From what I've read on this MDN article about the slider role, the label is required.

I thought that perhaps using thumb-label="always" might solve the problem by using the aria-labelled-by attribute, but that didn't work either.

I would think a default aria-label would make sense here and then possibly allow users to add their own aria label through a prop. You can add an aria-label directly to the slider, but that doesn't solve the issue of the thumb missing the label.

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