diff --git a/docs/content/docs/2.components/slider.md b/docs/content/docs/2.components/slider.md index 3be12a30be..1598b0ef7a 100644 --- a/docs/content/docs/2.components/slider.md +++ b/docs/content/docs/2.components/slider.md @@ -36,6 +36,12 @@ props: --- :: +::tip +Use `aria-label` or `aria-labelledby` to name a single thumb Slider, they are forwarded to the thumb which is the element with the `slider` role. + +The thumbs of a multiple thumbs Slider are named by their position so they can be told apart, `Minimum` / `Maximum` for two thumbs and `Value n of m` for three or more. Those names are kept, and an `aria-label` names the Slider as a whole through a `group` role on the root instead of being repeated on every thumb. +:: + ### Min / Max Use the `min` and `max` props to set the minimum and maximum values of the Slider. Defaults to `0` and `100`. diff --git a/src/runtime/components/Slider.vue b/src/runtime/components/Slider.vue index 50c2a7fb11..b13cbe95dc 100644 --- a/src/runtime/components/Slider.vue +++ b/src/runtime/components/Slider.vue @@ -44,7 +44,7 @@ export interface SliderEmits {