在垫子复选框中更改“刻度”标记颜色

时间:2020-04-02 06:27:30

标签: angular-material

我想更改垫子复选框内的刻度线颜色。我自定义了垫子复选框,并将背景色设为白色。但是刻度线颜色不清晰可见。有什么方法可以更改刻度颜色?任何帮助表示赞赏。

enter image description here

1 个答案:

答案 0 :(得分:0)

::ng-deep .mat-checkbox-checkmark-path {
stroke: black !important;
}

我明白了。谢谢