-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
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
Styling component #11
Comments
@majordo same I faced I need an external style for the component |
If you use the Shadow DOM (default) mode, all external styles are ignored, that's the point of Shadow DOM, to isolate your component from the host styling.
and use external styling. |
@VitalyBrusentsev thanks |
We have fixed this in the new release |
But what about css modules? Can't these be added inside the shadowdom root? |
@majordo @VitalyBrusentsev |
@subramanian-iouring External, as in "defined in the app that includes this web component"? Then just set |
@VitalyBrusentsev Thanks for your quick reply. So, how to applying styles inside the shadow DOM in r2wc? If i make shadow as false like you said, styles are overlapping in "custom-button" component, if same classnames are used in application and custom-button component. |
Is it possible to style component with external css file?
...Or only with inline styling?
The text was updated successfully, but these errors were encountered: