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

@ -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);
}
}