Skip to content

Commit

Permalink
Merge pull request videojs#988 from golisandeep3/master
Browse files Browse the repository at this point in the history
Fixed ARIA role attribute for button and slider
  • Loading branch information
heff committed Feb 7, 2014
2 parents ef1b239 + b23eba7 commit 849521e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/js/button.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/js/slider.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 849521e

Please sign in to comment.