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 8eb81da commit 2f35ecdCopy full SHA for 2f35ecd
src/index.ts
@@ -72,9 +72,9 @@ export default class IncludeFragmentElement extends HTMLElement {
72
constructor() {
73
super()
74
const shadowRoot = this.attachShadow({mode: 'open'})
75
- const style = shadowRoot.appendChild(document.createElement('style'))
+ const style = document.createElement('style')
76
style.textContent = `:host {display: block;}`
77
- style.appendChild(document.createElement('slot'))
+ shadowRoot.append(style, document.createElement('slot'))
78
}
79
80
connectedCallback(): void {
0 commit comments