We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
#214 (comment)
For styling : mounted() { var shadow_css = new CSSStyleSheet; shadow_css.replaceSync(YOUR_CSS) this.$el.shadowRoot.adoptedStyleSheets = [ shadow_css ]; }
For styling :
mounted() { var shadow_css = new CSSStyleSheet; shadow_css.replaceSync(YOUR_CSS) this.$el.shadowRoot.adoptedStyleSheets = [ shadow_css ]; }
61fc8ac
adoptedStyleSheets
const adoptedStyleSheets = new CSSStyleSheet() adoptedStyleSheets.replace('p { color: green }')
<shadow-root :adopted-style-sheets="[adoptedStyleSheets]"> <p>test adoptedStyleSheets</p> </shadow-root>
result:
The text was updated successfully, but these errors were encountered:
No branches or pull requests
#214 (comment)
61fc8ac
Experimental
adoptedStyleSheets
result:
The text was updated successfully, but these errors were encountered: