From 07691976c682a373b3afd24eb58ca4272a7cb9d9 Mon Sep 17 00:00:00 2001 From: Diego Pascual Date: Thu, 8 Feb 2024 08:57:05 +0100 Subject: [PATCH] feat: add class to root container for x (#446) --- src/x-components/plugin.options.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/x-components/plugin.options.ts b/src/x-components/plugin.options.ts index 77bcb27f..d4b2522f 100644 --- a/src/x-components/plugin.options.ts +++ b/src/x-components/plugin.options.ts @@ -60,6 +60,7 @@ function getDomElement({ isolate }: SnippetConfig): Element { if (isolate || process.env.NODE_ENV === 'production') { const container = document.createElement('div'); + container.classList.add('x-root-container'); const shadowRoot = container.attachShadow({ mode: 'open' }); shadowRoot.appendChild(domElement); document.body.appendChild(container);