Angular - Material: Progressbar custom color?

后端 未结 9 2447
生来不讨喜
生来不讨喜 2020-12-14 09:09

I am now trying for hours. I use Material2 and simply want to change the color of the progress-bar. I know there are those themes (primary/accent/warn) but I want to have a

9条回答
  •  独厮守ぢ
    2020-12-14 09:49

    You can override only progress bar backgroud-color through this method added custom class then apply css by combination of tag and class like-

    Change into style.css

    mat-progress-bar.my-color .mat-progress-bar-fill::after { background-color: green; }

提交回复
热议问题