skip to Main Content

Html – How to add stylesheet to shadow dom?

I am using web components. I have the following html structure <div class="test"> #shadow-root (open) <overlay-trigger type="modal"> <div id = "login-dialog"> #shadow-root (open) <div id = "modal"> I have the following code const styleString = String(styles); const style = document.createElement("style");…

VIEW QUESTION
Back To Top
Search