Problem with styles on @angular/elements WebComponent
I'm trying to develop a WC using @angular/elements with Angular 20. Everything works fine, except for the styles, which don't want to appear. I've checked that the styles are correctly compiled on the WC's folder, and that It is being referenced correctly on it's index.html, but still nothing. The only way that I have gotten some results is to disable the component's encapsulation and referenced it's stylesheet on the html file that I'm going to use it in. My biggest fear with this is the style collision/override that would happen as a consequence of this. Is there a proper way to do this?
Posted Jul 17, 2025, 8:24 AM UTC
10