Shadow DOM styling from the outside
I did try many methods, including those described here. Since I’m using an external Web Component lib, I don’t have access to modify these components. So, the only solution that worked for me was using JS querySelector, like this: document.querySelector(“the-element.with-shadow-dom”) .shadowRoot.querySelector(“.some-selector”).setAttribute(“style”, “color: black”); Not the best solution, not suitable for large stylings, but does work … Read more