Angular Material mat-spinner custom color

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

    In your styles.css file, add...

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

    As you might have guessed, I have just made a simple modification to Nitin Wahale's answer. I have prefixed his answer with ::ng-deep and it worked in my case as I had the same issue.

    I hope this helps somebody

提交回复
热议问题