1
0
mirror of https://github.com/videojs/video.js.git synced 2025-01-27 11:22:06 +02:00

feat: wrap menu item text in a span (#4026)

Fix #4017
This commit is contained in:
Gary Katsevman 2017-02-03 16:35:30 -05:00 committed by GitHub
parent e176b56843
commit 5748c360af

View File

@ -59,7 +59,7 @@ class MenuItem extends ClickableComponent {
return super.createEl('li', assign({
className: 'vjs-menu-item',
innerHTML: this.localize(this.options_.label),
innerHTML: `<span class="vjs-menu-item-text">${this.localize(this.options_.label)}</span>`,
tabIndex: -1
}, props), attrs);
}