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, I can't change anything there. I want it to be my custom color, not color from prebiult-themes.
相关问题
- Angular RxJS mergeMap types
- npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fs
- Adding a timeout to a render function in ReactJS
- How to update placeholder text in ng2-smart-table?
-
Why does the box-shadow property not apply to a
Easy Fix!
Add custom css rules inside styles.css instead of component.css file
mat-spinner html code :
<mat-spinner color="accent" diameter="20" class="loading"></mat-spinner>
And now sass code :
This is best achieved by doing a custom theme.
https://material.angular.io/guide/theming
Sample Color, strokeWidth, diameter and title
use this code
To your .css/.scss component file style add (it will works locally - in component only)