Skip to content

Commit

Permalink
fix: Fix UI captions icon state (shaka-project#4384)
Browse files Browse the repository at this point in the history
Reviewed-by: @anshgo01yal 
Co-authored-by: Joey Parrish <joeyparrish@users.noreply.github.com>
Co-authored-by: Álvaro Velad Galván <alvaro.velad@mirada.tv>

Closes shaka-project#4358
  • Loading branch information
kartikeyshaurya committed 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
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.