Skip to content

Commit

Permalink
Merge pull request #338 from StephenMcConnel/BL-13906-AddBackgroundFo…
Browse files Browse the repository at this point in the history
…rVideoErrorMsg

fix: Add background color for video error messages (BL-13906)
  • Loading branch information
andrew-polk authored Nov 14, 2024
2 parents 09f3509 + 41151c9 commit e8a1eb3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/narration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1303,6 +1303,7 @@ export function showVideoError(video: HTMLVideoElement): void {
msgDiv.textContent = badVideoMessage;
msgDiv.style.display = "block";
msgDiv.style.color = "black";
msgDiv.style.backgroundColor = "rgba(255, 255, 255, 0.5)"; // semi-transparent white
msgDiv.style.position = "absolute";
msgDiv.style.left = "10%";
msgDiv.style.top = "10%";
Expand Down

0 comments on commit e8a1eb3

Please sign in to comment.