Angular Material mat-spinner custom color

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

    Color is build in.

    Theming The color of a progress-spinner can be changed by using the color property. By default, progress-spinners use the theme's primary color. This can be changed to 'accent' or 'warn'.

    https://material.angular.io/components/progress-spinner/overview

    example

    
    

提交回复
热议问题