【发布时间】:2019-07-01 15:13:46
【问题描述】:
我正在使用 angular 6 和 angular 材料。我正在使用角材料的垫子步进器。想要更改默认、活动和访问步骤的垫子图标颜色。 请问有人可以帮忙吗?
:host /deep/ mat-horizontal-stepper .mat-horizontal-stepper-header-container .mat-step-icon {
background-color: "red" !important;
color: #fff !important;
}
.mat-step-icon-selected,
.mat-step-icon-state-done,
.mat-step-icon-state-edit {
background-color: "blue";
color:#fff;
}
也试过这个:
/deep/ mat-step-header.mat-horizontal-stepper-header > div.mat-step-icon-selected {
background-color:'red';
}
但不工作
谢谢
【问题讨论】:
-
尝试使用
red而不是"red"stackblitz.com/edit/angular-zgsxg4?file=app/…