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

Styles are missng for web component #4316

Closed
sherlock1982 opened this issue Aug 11, 2021 · 2 comments
Closed

Styles are missng for web component #4316

sherlock1982 opened this issue Aug 11, 2021 · 2 comments

Comments

@sherlock1982
Copy link

Version

3.2.2

Reproduction link

https://github.com/sherlock1982/hello-world-custom

Steps to reproduce

Just launch yarn serve and open http://localhost:8080/

What is expected?

Both app instances to have same styles. Styles for custom app should be defined in shadowRoot

What is actually happening?

Styles are missing for custom-app component


I created a hello-world app and turned main app component into a web component. Now I expect custom-app web component to be styled exactly how normal app.

@pawel-marciniak
Copy link

pawel-marciniak commented Aug 13, 2021

I noticed similar problem myself - you can change App.vue to App.ce.vue, then vue-loader should get styles from main component's <style> and inject them into shadow dom root of the web component, but for me it don't inject nested components styles (only styles from main component are injected) :/

EDIT:
I see that there is already issue created for it - #4309

@sherlock1982
Copy link
Author

I will close it as it's already in the docs and a duplicate.

@github-actions github-actions bot locked and limited conversation to collaborators Oct 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants