mirror of
https://github.com/videojs/video.js.git
synced 2025-01-19 10:54:16 +02:00
Fixed ARIA role attribute for button and slider
This commit is contained in:
parent
70ed4fcbb2
commit
b23eba7c8c
@ -43,7 +43,7 @@ vjs.Button.prototype.createEl = function(type, props){
|
||||
props = vjs.obj.merge({
|
||||
className: this.buildCSSClass(),
|
||||
innerHTML: '<div class="vjs-control-content"><span class="vjs-control-text">' + (this.buttonText || 'Need Text') + '</span></div>',
|
||||
role: 'button',
|
||||
'role': 'button',
|
||||
'aria-live': 'polite', // let the screen reader user know that the text of the button may change
|
||||
tabIndex: 0
|
||||
}, props);
|
||||
|
@ -40,7 +40,7 @@ vjs.Slider.prototype.createEl = function(type, props) {
|
||||
// Add the slider element class to all sub classes
|
||||
props.className = props.className + ' vjs-slider';
|
||||
props = vjs.obj.merge({
|
||||
role: 'slider',
|
||||
'role': 'slider',
|
||||
'aria-valuenow': 0,
|
||||
'aria-valuemin': 0,
|
||||
'aria-valuemax': 100,
|
||||
|
Loading…
x
Reference in New Issue
Block a user