Home > database >  Angular 12 css fallback
Angular 12 css fallback

Time:10-02

Angular 12's css are generating a fallback for css's variables. How can I prevent that? enter image description here

CodePudding user response:

I think it has to do with how Angular compiles.
You could switch back from AOT to JIT, and see if that helps you;
but I don't know why you have a problem with it.

If you want to assign only the style you have defined on your component CSS, you can use ViewEncapsulation with ShadowDom.

CodePudding user response:

Use !important after declaring a style

  • Related