Closed leobenkel closed 1 month ago
Hello,
I have a component that looks like:
<div class="foo"> <slot></slot> </div> <style lang="scss"> :global(.foo) { color: red; p { background-color: yellow; } } </style>
but it seems the .foo p is removed since it is not used but the things coming in from <slot> will have <p>. How do i make it keep the CSS?
.foo p
<slot>
<p>
https://github.com/sveltejs/kit/issues/10572#issuecomment-1681424395
Using :global() everywhere fixes it
:global()
Hello,
I have a component that looks like:
but it seems the
.foo p
is removed since it is not used but the things coming in from<slot>
will have<p>
. How do i make it keep the CSS?