Can I change the color of Angular Material checkbox with some custom color and how?

后端 未结 7 1969
盖世英雄少女心
盖世英雄少女心 2020-12-28 16:10

I\'m trying to do this, but is looks like it is only possible to change it to primary or warn.

7条回答
  •  星月不相逢
    2020-12-28 16:20

    These answers didn't work for me for indeterminate boxes. Following did:

    ::ng-deep .mat-checkbox-checked .mat-checkbox-background,
    ::ng-deep .mat-checkbox-indeterminate .mat-checkbox-background {
      background-color: #222d32 !important;
    }
    

提交回复
热议问题