Skip to content
Snippets Groups Projects
Commit 1810022d authored by jmclaus's avatar jmclaus
Browse files

Caption functionality announced when tabbing to list

parent afa2a681
No related merge requests found
......@@ -432,14 +432,18 @@ function () {
// outline has to be drawn (tabbing) or not (mouse click).
this.videoCaption.isMouseFocus = false;
// Set top and bottom spacing heigh and make sure they are taken out of
// the tabbing order.
this.videoCaption.subtitlesEl
.prepend(
$('<li class="spacing">')
.height(this.videoCaption.topSpacingHeight())
.attr('tabindex', -1)
)
.append(
$('<li class="spacing">')
.height(this.videoCaption.bottomSpacingHeight())
.attr('tabindex', -1)
);
this.videoCaption.rendered = true;
......
......@@ -85,7 +85,7 @@
</section>
</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 class="focus_grabber last"></div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment