Commit 3605ebd0 by jmclaus

Merge pull request #1398 from edx/jmclaus/bugfix_caption_a11y

Caption functionality announced when tabbing to list
parents afa2a681 1810022d
...@@ -432,14 +432,18 @@ function () { ...@@ -432,14 +432,18 @@ function () {
// outline has to be drawn (tabbing) or not (mouse click). // outline has to be drawn (tabbing) or not (mouse click).
this.videoCaption.isMouseFocus = false; this.videoCaption.isMouseFocus = false;
// Set top and bottom spacing heigh and make sure they are taken out of
// the tabbing order.
this.videoCaption.subtitlesEl this.videoCaption.subtitlesEl
.prepend( .prepend(
$('<li class="spacing">') $('<li class="spacing">')
.height(this.videoCaption.topSpacingHeight()) .height(this.videoCaption.topSpacingHeight())
.attr('tabindex', -1)
) )
.append( .append(
$('<li class="spacing">') $('<li class="spacing">')
.height(this.videoCaption.bottomSpacingHeight()) .height(this.videoCaption.bottomSpacingHeight())
.attr('tabindex', -1)
); );
this.videoCaption.rendered = true; this.videoCaption.rendered = true;
......
...@@ -85,7 +85,7 @@ ...@@ -85,7 +85,7 @@
</section> </section>
</article> </article>
<ol class="subtitles" tabindex="0" title="Captions"><li></li></ol> <ol class="subtitles" tabindex="0" title="${_('Captions')}" role="group" aria-label="${_('Activating an item in this group will spool the video to the corresponding time point')}"><li></li></ol>
</div> </div>
<div class="focus_grabber last"></div> <div class="focus_grabber last"></div>
......
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