Skip to content
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

Missing styles when custom element imports a normal Svelte component #4

Open
HasinduLanka opened this issue Jan 16, 2023 · 0 comments

Comments

@HasinduLanka
Copy link

Let's say we have a custom element : App.svelte

App.svelte imports a normal svelte component : ./components/Message.svelte

But when you do this, any styles inside Message.svelte will disappear.

I wrote the solution for this in https://stackoverflow.com/questions/57802087/how-to-create-and-style-svelte-3-custom-elements-with-nested-components/75135788#75135788 with a link to https://www.thisdot.co/blog/web-components-with-svelte

I like to know if there's a non-hackish way of achieving this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant