How to change color of angular material stepper step icons

后端 未结 4 1220
北海茫月
北海茫月 2020-12-18 02:04

In the angular material stepper component, each step is represented by an icon in a circle. The background color of this circle is set to whatever the theme\'s primary color

4条回答
  •  离开以前
    2020-12-18 02:20

    Using Ionic v4, in my case just added (inside :root):

      .mat-step-header .mat-step-icon-selected {
        background-color: var(--ion-color-primary);
      }
    

    To variables.scss file.

提交回复
热议问题