Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

apply css to shadow dom


document.querySelector("[data-spot-im-shadow-host]")
 .shadowRoot.querySelector("#spotim-specific .Typography__product-heading")
 .setAttribute("style", "color: red!important");
 
PREVIOUS NEXT
Tagged: #apply #css #shadow #dom
ADD COMMENT
Topic
Name
3+1 =