Home > Mobile >  How to edit ng-zorro component css in nz-modal?
How to edit ng-zorro component css in nz-modal?

Time:05-24

This is my enter image description here

CodePudding user response:

Your modal HTML is part of your component. It means the view encapsulation is applied to it like it normally would.

So style it like you would style "normal" HTML.

https://stackblitz.com/edit/angular-9dvf1z-rzp7f3?file=src/app/app.component.ts,src/app/app.component.html,src/app/app.component.scss

Note that for the second style, you have to use ::ng-deep because this is a span inside a library component.

  • Related