Angular Material mat-spinner custom color

后端 未结 15 1570
慢半拍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 17:08

    To your .css/.scss component file style add (it will works locally - in component only)

    :host ::ng-deep .mat-progress-spinner circle, .mat-spinner circle {   
        stroke: #bada55;
    }
    

提交回复
热议问题