Open wheeOs opened 1 month ago
ok I found a workaround for this. Instead of using the id of the app, I use a unique class for the selector, since popovers are added outside of the app node. That class has to be added to the root node of the document when starting the app:
in tailwind.config.js:
const config = {
important: '.unique-class',
in main:
const TW_CLASS_SELECTOR = 'unique-class';
document.querySelector('body')?.classList.add(TW_CLASS_SELECTOR);
Describe the bug
In my project I'm forced to use the important selector strategy to prevent styling conflicts on the website. I'm not sure if this is a bug or something to be adjusted in another configuration file elsewhere.
without TW selector strategy:
with TW selector strategy:
Reproduction
See https://stackblitz.com/edit/github-tc8wih?file=src%2Flib%2Fcomponents%2FFoo.svelte
due to the
important: '#app'
configuration the borders of the popover are not visible anymoreLogs
No response
System Info
Severity
annoyance