diff --git a/src/css/components/_audio.scss b/src/css/components/_audio.scss index c8f064c33d..7d05921544 100644 --- a/src/css/components/_audio.scss +++ b/src/css/components/_audio.scss @@ -2,13 +2,15 @@ @extend .vjs-icon-audio; } +.video-js .vjs-audio-button + .vjs-menu .vjs-description-menu-item .vjs-menu-item-text .vjs-icon-placeholder, .video-js .vjs-audio-button + .vjs-menu .vjs-main-desc-menu-item .vjs-menu-item-text .vjs-icon-placeholder { vertical-align: middle; display: inline-block; margin-bottom: -0.1em; } -// Mark a main-desc-menu-item (main + description) item with a trailing Audio Description icon +// Mark a main-desc-menu-item (main + description) or description item with a trailing Audio Description icon +.video-js .vjs-audio-button + .vjs-menu .vjs-description-menu-item .vjs-menu-item-text .vjs-icon-placeholder:before, .video-js .vjs-audio-button + .vjs-menu .vjs-main-desc-menu-item .vjs-menu-item-text .vjs-icon-placeholder:before { font-family: VideoJS; content: " \f12e"; diff --git a/src/js/control-bar/audio-track-controls/audio-track-menu-item.js b/src/js/control-bar/audio-track-controls/audio-track-menu-item.js index 14b550fba8..22e6e6f4a7 100644 --- a/src/js/control-bar/audio-track-controls/audio-track-menu-item.js +++ b/src/js/control-bar/audio-track-controls/audio-track-menu-item.js @@ -49,7 +49,7 @@ class AudioTrackMenuItem extends MenuItem { const el = super.createEl(type, props, attrs); const parentSpan = el.querySelector('.vjs-menu-item-text'); - if (this.options_.track.kind === 'main-desc') { + if (['main-desc', 'description'].indexOf(this.options_.track.kind) >= 0) { parentSpan.appendChild(Dom.createEl('span', { className: 'vjs-icon-placeholder' }, {