Angular - Material: Progressbar custom color?

后端 未结 9 2461
生来不讨喜
生来不讨喜 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 10:05

    Angular 8 solution:

    for me it was putting my styling in a top level .scss file. Also had to select in .scss as follows:

    html:

    
    
    
    
    
    

    styles.scss:

    .weakest {
      .mat-progress-bar-fill::after {
        background-color: yellow;
      }
    }
    
    

提交回复
热议问题