Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Adjust globalifySelector to not split selectors with parentheses. #632

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

gregschmit
Copy link

@gregschmit gregschmit commented May 9, 2024

Fixes #501

I ran into an issue where I could not use simple tailwind apply directives for dark mode and also couldn't import Daisy UI. I tracked it down to a problem with svelte-preprocess creating :global rules that svelte is not happy with. User https://github.com/MagDevX suggested an adjustment to globalifySelector.js combinatorPattern to prevent selectors with parenthesis from being split.

@gregschmit
Copy link
Author

Update: I added a test that shows the problem and it fails in main but passes on this branch. I ran tests and everything passed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Global styles not supporting composed selectors like :is()
1 participant