Skip to content

Commit

Permalink
use textcontent in menu css
Browse files Browse the repository at this point in the history
refs #106395
  • Loading branch information
sbatten committed Sep 10, 2020
1 parent 70a3975 commit 2e56d31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vs/base/browser/ui/menu/menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -229,11 +229,11 @@ export class Menu extends ActionBar {
private initializeStyleSheet(container: HTMLElement): void {
if (isInShadowDOM(container)) {
this.styleSheet = createStyleSheet(container);
this.styleSheet.innerHTML = MENU_WIDGET_CSS;
this.styleSheet.textContent = MENU_WIDGET_CSS;
} else {
if (!Menu.globalStyleSheet) {
Menu.globalStyleSheet = createStyleSheet();
Menu.globalStyleSheet.innerHTML = MENU_WIDGET_CSS;
Menu.globalStyleSheet.textContent = MENU_WIDGET_CSS;
}

this.styleSheet = Menu.globalStyleSheet;
Expand Down

0 comments on commit 2e56d31

Please sign in to comment.