react-slider
Advanced tools
Comparing version 0.10.2 to 0.11.0
{ | ||
"name": "react-slider", | ||
"version": "0.10.2", | ||
"version": "0.11.0", | ||
"description": "Slider component for React", | ||
@@ -5,0 +5,0 @@ "main": "react-slider.js", |
@@ -45,2 +45,6 @@ (function (root, factory) { | ||
var isArray = Array.isArray || function(x) { | ||
return Object.prototype.toString.call(x) === '[object Array]'; | ||
}; | ||
// undoEnsureArray(ensureArray(x)) === x | ||
@@ -753,2 +757,4 @@ | ||
"aria-valuemax": this.props.max, | ||
"aria-label": isArray(this.props.ariaLabel) ? this.props.ariaLabel[i] : this.props.ariaLabel, | ||
"aria-valuetext": this.props.ariaValuetext, | ||
}, | ||
@@ -755,0 +761,0 @@ child |
@@ -148,2 +148,12 @@ # React Slider | ||
##### ariaLabel {oneOfType([string, arrayOf(string)])} | ||
aria-label for screen-readers to apply to the handles. | ||
Use an array for more than one handle. | ||
The length of the array must match the number of handles in the value array. | ||
##### ariaValuetext {string} | ||
aria-valuetext for screen-readers | ||
### Methods | ||
@@ -150,0 +160,0 @@ |
Sorry, the diff of this file is not supported yet
37998
760
168