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

fix(VSlider): add aria-label to v-slider-thumb #19887

Merged
merged 3 commits into from
May 24, 2024
Merged

fix(VSlider): add aria-label to v-slider-thumb #19887

merged 3 commits into from
May 24, 2024

Conversation

tilenpirih
Copy link
Contributor

@tilenpirih tilenpirih commented May 24, 2024

Accessability problem with v-slider component.
image

The code pass name prop to slider thumb component and uses name as an aria-label value. If name prop isn't passed it just uses Slider as a default aria-label value.

The code changes add a `name` prop to the `VSliderThumb` component in order to pass it down to the underlying element. This allows for better accessibility by providing an `aria-label` attribute with the value of the `name` prop.
@tilenpirih tilenpirih changed the title fix: Add aria-label to v-slider-thumb fix(VSlider): Add aria-label to v-slider-thumb May 24, 2024
@tilenpirih tilenpirih changed the title fix(VSlider): Add aria-label to v-slider-thumb fix(VSlider): add aria-label to v-slider-thumb May 24, 2024
@johnleider johnleider added this to the v3.6.x milestone May 24, 2024
tilenpirih and others added 2 commits May 24, 2024 17:05
Co-authored-by: John Leider <9064066+johnleider@users.noreply.github.com>
Co-authored-by: John Leider <9064066+johnleider@users.noreply.github.com>
@johnleider johnleider added T: bug Functionality that does not work as intended/expected a11y Accessibility issue C: VSlider labels May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a11y Accessibility issue C: VSlider T: bug Functionality that does not work as intended/expected
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants