Using Angular materials with Angular4, I cannot find a way to change the color of the checkbox after validation.
The only way I could change the style in its original form is:
:host /deep/ .mat-checkbox-inner-container{
height:15px;
width:15px;
background-color: rgba(0, 255, 0, 0.87);
}
Trying to change the style after checking, the following did not work:
:host /deep/ .mat-checkbox-checked {
background-color:yellow;
}
It is actually applied after verification, but in the wrong element - it does not apply in the inner container.
Something :host /deep/ .mat-checkbox-inner-container-checkeddoesn't seem to work.
Any help is appreciated.
source
share