Skip to content

Commit

Permalink
feat: wrap menu item text in a span (#4026)
Browse files Browse the repository at this point in the history
Fix #4017
  • Loading branch information
gkatsev authored Feb 3, 2017
1 parent e176b56 commit 5748c36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/menu/menu-item.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 5748c36

Please sign in to comment.