Commit 721fffc9 by Chris Rodriguez

AC-407 adding lable to video progress

parent bf938052
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
expect(timeControl).toHaveAttrs({ expect(timeControl).toHaveAttrs({
'role': 'slider', 'role': 'slider',
'title': 'Video position', 'aria-label': 'Video position',
'aria-disabled': 'false' 'aria-disabled': 'false'
}); });
......
...@@ -83,7 +83,6 @@ function () { ...@@ -83,7 +83,6 @@ function () {
// handle, behaves as a slider named 'video position'. // handle, behaves as a slider named 'video position'.
state.videoProgressSlider.handle.attr({ state.videoProgressSlider.handle.attr({
'role': 'slider', 'role': 'slider',
'title': gettext('Video position'),
'aria-disabled': false, 'aria-disabled': false,
'aria-valuetext': getTimeDescription(state.videoProgressSlider 'aria-valuetext': getTimeDescription(state.videoProgressSlider
.slider.slider('option', 'value')), .slider.slider('option', 'value')),
...@@ -91,6 +90,7 @@ function () { ...@@ -91,6 +90,7 @@ function () {
'aria-valuemin': '0', 'aria-valuemin': '0',
'aria-valuenow': state.videoPlayer.currentTime, 'aria-valuenow': state.videoPlayer.currentTime,
'tabindex': '0' 'tabindex': '0'
'aria-label': gettext('Video position')
}); });
state.el.on('destroy', state.videoProgressSlider.destroy); state.el.on('destroy', state.videoProgressSlider.destroy);
......
...@@ -50,7 +50,9 @@ function() { ...@@ -50,7 +50,9 @@ function() {
'</span>', '</span>',
'</span>', '</span>',
'</button>', '</button>',
'<div class="volume-slider-container" aria-hidden="true" title="' + gettext('Adjust video volume') + '">', // jshint ignore: line '<div class="volume-slider-container" aria-hidden="true" title="',
gettext('Adjust video volume'),
'">',
'<div class="volume-slider" ', '<div class="volume-slider" ',
'role="slider"', 'role="slider"',
'aria-orientation="vertical" ', 'aria-orientation="vertical" ',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment