Angular Material mat-spinner custom color

后端 未结 15 1568
慢半拍i
慢半拍i 2021-01-07 16:11

Does anyone know how can I change mat-spinner color in Angular Material? Overriding css doesn\'t work. I tried changing color in material files but they can only be imported

15条回答
  •  伪装坚强ぢ
    2021-01-07 16:53

    In your css file mention like below:
    
    ::ng-deep.mat-progress-spinner circle,.mat-spinner circle {stroke: #f2aa4cff !important;}
    

    Here, ::ng-deep will be used to force a style.

    !important here what says is that "this is Important",you ignore all other rules and apply this rule.

提交回复
热议问题