Closed samulefevre closed 3 years ago
Hello! What was the solution?
I'm also dealing with this issue. Tailwind and scoped styles are not being automatically injected into my app mounted on the shadow DOM.
Hello !
In content script i added :
...
const shadow = shadowHost.attachShadow({ mode: 'open' })
shadow.innerHTML = `
<style>
:host {
all: initial;
}
</style>
`
const linkElem = document.createElement('link')
linkElem.setAttribute('rel', 'stylesheet')
linkElem.setAttribute('href', browser.runtime.getURL('css/content-script.css'))
shadow.appendChild(linkElem)
Hello, good job and thank you for this plugin. I am trying to load css from tailwindcss inside shadow dom but it is not working.
Maybe like https://medium.com/rate-engineering/winning-the-war-of-css-conflicts-through-the-shadow-dom-de6c797b5cba. but is is for react
I was not able to do the same thing in vue cli 4