We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04b9275 commit c2c3177Copy full SHA for c2c3177
src/vs/base/browser/ui/contextview/contextview.ts
@@ -157,11 +157,9 @@ export class ContextView extends Disposable {
157
this.shadowRootHostElement = DOM.$('.shadow-root-host');
158
this.container.appendChild(this.shadowRootHostElement);
159
this.shadowRoot = this.shadowRootHostElement.attachShadow({ mode: 'open' });
160
- this.shadowRoot.innerHTML = `
161
- <style>
162
- ${SHADOW_ROOT_CSS}
163
- </style>
164
- `;
+ const style = document.createElement('style');
+ style.textContent = SHADOW_ROOT_CSS;
+ this.shadowRoot.appendChild(style);
165
this.shadowRoot.appendChild(this.view);
166
this.shadowRoot.appendChild(DOM.$('slot'));
167
} else {
0 commit comments