-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Svelte 5: add :global {...}
nested selectors
#10815
Milestone
Comments
This was referenced Mar 15, 2024
5 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the problem
Right now the way to write global styles is to wrap each selector in
:global(...)
:Generally, you shouldn't be using pure global selectors much — it's better to put those in a
.css
file. But it's often useful to have 'scoped global' selectors — it's common to do this sort of thing, for example:Describe the proposed solution
It would be much less irksome to use the recently-added CSS nesting support to do this instead:
Importance
nice to have
The text was updated successfully, but these errors were encountered: