Skip to content

Commit

Permalink
feat: add class to root container for x (#446)
Browse files Browse the repository at this point in the history
  • Loading branch information
diegopf authored Feb 8, 2024
1 parent 8be5871 commit 0769197
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/x-components/plugin.options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0769197

Please sign in to comment.