Skip to content

Commit 2e56d31

Browse files
committed
use textcontent in menu css
refs #106395
1 parent 70a3975 commit 2e56d31

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/vs/base/browser/ui/menu/menu.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,11 +229,11 @@ export class Menu extends ActionBar {
229229
private initializeStyleSheet(container: HTMLElement): void {
230230
if (isInShadowDOM(container)) {
231231
this.styleSheet = createStyleSheet(container);
232-
this.styleSheet.innerHTML = MENU_WIDGET_CSS;
232+
this.styleSheet.textContent = MENU_WIDGET_CSS;
233233
} else {
234234
if (!Menu.globalStyleSheet) {
235235
Menu.globalStyleSheet = createStyleSheet();
236-
Menu.globalStyleSheet.innerHTML = MENU_WIDGET_CSS;
236+
Menu.globalStyleSheet.textContent = MENU_WIDGET_CSS;
237237
}
238238

239239
this.styleSheet = Menu.globalStyleSheet;

0 commit comments

Comments
 (0)