Losing styles when injecting popup component in CSUI
No matter if the CSUI is
or
And the popup is:
When the popup loads from within the CSUI,
.wrapper
is styled as in the attached screenshot
I also tried renaming popup.svelte
to Popup.svelte
but didn't seem to solve it9 Replies
@louis Please take a look at it as soon as you can, it poses a major bottleneck on my dev cycle
@avi12 afaik, the framework doesn't deal with svelte CSS extraction cross entry file. PR's welcome to add it xd... (iirc, you tried to work on a PR to add something like that but it got compliated quick)
Right
So I guess the solution is to extract all of the SCSS into files, right?
Because this issue is only in CSUI as far as I can tell
I got another hack working
popup.svelte
So I guess the solution is to extract all of the SCSS into files, right?yeah I think so, leveraging the file system to share modules
It has become tricky to maintain
I'd colocate the relevant files
Wdym?
Something like
components/Card/(index.svelte + index.scss)
So you can import it separately, while also able to see them at the same locationTrue, it is an option; it doesn't actually matter whether I use the same file locations with
styles/
added in the path or I put the component and the SCSS in the same directory