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 think the key here is that is must be in the GLOBAL styles.css
file. The below solution does work if placed there (should be the CSS file affected when material was added to the project if added with ng add
:
.mat-progress-spinner circle, .mat-spinner circle {
stroke: #b68200;
}
Of course you could also add classes to the component and specify different selectors if you want distinctly styled spinners. However, it seems the classes must be in the global CSS file.