Angular Material mat-spinner custom color

后端 未结 15 1561
慢半拍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:50

    Easy Fix!

    Add custom css rules inside styles.css instead of component.css file

    .mat-progress-spinner circle, .mat-spinner circle {
        stroke: #2A79FF!important;
    }
    

提交回复
热议问题