diff --git a/api-generator/components/slider.js b/api-generator/components/slider.js
index 412b7a2bd..519aa2ad5 100644
--- a/api-generator/components/slider.js
+++ b/api-generator/components/slider.js
@@ -41,11 +41,23 @@ const SliderProps = [
default: "false",
description: "When present, it specifies that the component should be disabled."
},
+ {
+ name: "tabindex",
+ type: "number",
+ default: "null",
+ description: "Index of the element in tabbing order."
+ },
{
name: "ariaLabelledBy",
type: "string",
default: "null",
description: "Establishes relationships between the component and label(s) where its value should be one or more element IDs."
+ },
+ {
+ name: "ariaLabel",
+ type: "string",
+ default: "null",
+ description: "Used to define a string that labels the element."
}
];
diff --git a/src/components/slider/Slider.d.ts b/src/components/slider/Slider.d.ts
index c3ac51c80..78a7c47c5 100755
--- a/src/components/slider/Slider.d.ts
+++ b/src/components/slider/Slider.d.ts
@@ -48,10 +48,18 @@ export interface SliderProps {
* When present, it specifies that the component should be disabled.
*/
disabled?: boolean | undefined;
+ /**
+ * Index of the element in tabbing order.
+ */
+ tabindex?: number | undefined;
/**
* Establishes relationships between the component and label(s) where its value should be one or more element IDs.
*/
ariaLabelledBy?: string | undefined;
+ /**
+ * Used to define a string that labels the element.
+ */
+ ariaLabel?: string | undefined
}
export interface SliderSlots {
diff --git a/src/components/slider/Slider.vue b/src/components/slider/Slider.vue
index 5339cce6f..86b7d19d7 100755
--- a/src/components/slider/Slider.vue
+++ b/src/components/slider/Slider.vue
@@ -1,12 +1,12 @@
Slider element component uses slider role on the handle in addition to the aria-orientation, aria-valuemin, aria-valuemax and aria-valuenow attributes. Value to describe the component can be defined using + aria-labelledby and aria-label props.
+ +
+<span id="label_number">Number</span>
+<Slider aria-labelledby="label_number" />
+
+<Slider aria-label="Number" />
+
+
+
+ Key | +Function | +
---|---|
tab | +Moves focus to the slider. | +
+ + left arrow + up arrow + + | +Decrements the value. | +
+ + right arrow + down arrow + + | +Increments the value. | +
home | +Set the minimum value. | +
end | +Set the maximum value. | +
page up | +Increments the value by 10 steps. | +
page down | +Decrements the value by 10 steps. | +
None.