Rezi / sugar-css

Other
34 stars 2 forks source link

Selector `body >` = Broken Layout in Svelte-Projects #6

Open a-kla opened 1 month ago

a-kla commented 1 month ago

You can't use Selector body > in Svelte-Projects :( Read https://github.com/sveltejs/kit/discussions/7585

In my Project i use a body class as workaround.

Rezi commented 1 month ago

I don't really have nice solution for this.. Sveltekit is breaking semantics, it should be solved on Svelte side. They should remove the div and replace is by some kind of wrapping comments before and after the nodes injection so they can distinguish it from 3rd party nodes. You will be forced to use custom Sugar css and modify it yourself. Fixes for the css generation are coming shortly.