Skip to content

Not working with Web Component and Shadow DOM #2355

Answered by ycgarrido
ycgarrido asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, I want to do something like this: https://mui.com/material-ui/guides/shadow-dom/.
Maybe there is a way but I don't see it in the documentation. When I create a web component with Shadow DOM active, the css is created in the head of the page. Inside the component that css has no effect because it is encapsulated in the shadow DOM. Is there a way to get the css to be generated somewhere other than the head of the page?

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@hasparus
Comment options

@ycgarrido
Comment options

Answer selected by lachlanjc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #2350 on November 01, 2022 15:29.