Skip to content

Commit

Permalink
fix: Fix UI captions icon state (#4384)
Browse files Browse the repository at this point in the history
Reviewed-by: @anshgo01yal 
Co-authored-by: Joey Parrish <[email protected]>
Co-authored-by: Álvaro Velad Galván <[email protected]>

Closes #4358
  • Loading branch information
kartikeyshaurya authored Aug 10, 2022
1 parent eb2aed8 commit d462633
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/text_selection.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,11 @@ shaka.ui.TextSelection = class extends shaka.ui.SettingsMenu {
onCaptionStateChange_() {
if (this.player.isTextTrackVisible()) {
this.icon.textContent =
shaka.ui.Enums.MaterialDesignIcons.CLOSED_CAPTIONS_OFF;
shaka.ui.Enums.MaterialDesignIcons.CLOSED_CAPTIONS;
this.button.ariaPressed = 'true';
} else {
this.icon.textContent =
shaka.ui.Enums.MaterialDesignIcons.CLOSED_CAPTIONS;
shaka.ui.Enums.MaterialDesignIcons.CLOSED_CAPTIONS_OFF;
this.button.ariaPressed = 'false';
}

Expand Down

0 comments on commit d462633

Please sign in to comment.