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

Merged
merged 1 commit into from
Jun 12, 2024

Conversation

gregschmit
Copy link
Contributor

@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
Contributor 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.

Copy link
Member

@dummdidumm dummdidumm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

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()
2 participants