Don't keep custom styles in window scope

This commit is contained in:
Thomas Brouard 2022-05-25 11:43:20 +02:00
parent 55e9c00d3c
commit f9bb271506
3 changed files with 3 additions and 7 deletions

View file

@ -2555,10 +2555,7 @@ class $eda442ba39f881a8$var$TabGroup extends HTMLElement {
connectedCallback() {
// Support custom styles
const style = this.querySelector("style");
if (style) {
const clone = style.cloneNode(true);
this.shadow.appendChild(clone);
}
if (style) this.shadow.appendChild(style);
}
createComponent() {
const shadow = this.attachShadow({

File diff suppressed because one or more lines are too long

View file

@ -100,8 +100,7 @@ class TabGroup extends HTMLElement {
// Support custom styles
const style = this.querySelector("style");
if (style) {
const clone = style.cloneNode(true);
this.shadow.appendChild(clone);
this.shadow.appendChild(style);
}
}