You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I posted this in the svelte repo first, because I think the fault is theirs, but I can't reproduce the error with pure svelte. The info below is what I posted there
Describe the bug
When a > is behind a :global() and thus outside the parentheses, the globalised class still gets the class of the component.
I think it's a conflict between svelte and svelte-preprocess that got started with sveltejs/svelte#4795 (we didn't have this issue yesterday)
To Reproduce
I couldn't reproduce the issue with https://svelte.dev/repl because I think it's a conflict between svelte and svelte-preprocess.
So in our project we have something like this:
:global(.menu) > .menu-item {...}
The result is the same with the normal style tag or one with lang="scss".
This outputs to:
@floratmin Thanks for the repro I was able to pinpoint where the problem originated! Fixed in 4.4.2. However, the OP issue still seems to be related to the compiler.
I posted this in the svelte repo first, because I think the fault is theirs, but I can't reproduce the error with pure svelte. The info below is what I posted there
Describe the bug
When a
>
is behind a:global()
and thus outside the parentheses, the globalised class still gets the class of the component.I think it's a conflict between svelte and svelte-preprocess that got started with sveltejs/svelte#4795 (we didn't have this issue yesterday)
To Reproduce
I couldn't reproduce the issue with https://svelte.dev/repl because I think it's a conflict between svelte and svelte-preprocess.
So in our project we have something like this:
The result is the same with the normal style tag or one with
lang="scss"
.This outputs to:
The adjustment below does produce the expected output, but shouldn't be required I think:
If this is ok for the svelte team, then this might need to be warned about in the documentation.
Expected output
Information about your Svelte project:
Severity
Blocking upgrade
The text was updated successfully, but these errors were encountered: