Skip to content

Commit 0481d9a

Browse files
Faraz32123Muhammad Faraz  Maqsood
andauthored
fix: accessibility issue on video transcripts (#37587)
This commit fixes accessibility issue for video transcripts as when a video component's SRT file has an empty line, the transcript has an empty link that is still interactive. Empty links should not be interactive and should be hidden from keyboard users as it takes extra click for them when an empty line occurs in the transcript. Co-authored-by: Muhammad Faraz Maqsood <[email protected]>
1 parent 56f7da9 commit 0481d9a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

xmodule/static/css-builtin-blocks/VideoBlockDisplay.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -708,6 +708,10 @@
708708
line-height: lh();
709709
}
710710

711+
.xmodule_display.xmodule_VideoBlock .video .subtitles .subtitles-menu li:has(> span:empty) {
712+
display: none;
713+
}
714+
711715
.xmodule_display.xmodule_VideoBlock .video .subtitles .subtitles-menu li span {
712716
display: block;
713717
}

0 commit comments

Comments
 (0)