The checkbox (both the checkmark and the ripple), by default uses the accent color from your theme. You can change it to use the primary color by using the color = "primary" property on the element. If you want to use a custom color (i.e. not from the theme), you'd have to override the CSS manually or create a custom theme.
If you only want to override the color of the ripple, you can override the .mat-ripple-element class which is added on the generated ripple element whenever you click the checkbox. Add your desired styles to theme.scss.
.custom-ripple {
.mat-ripple-element {
background-color: rgba(100, 200, 50, 0.5) !important;
}
}
Here's an example.
ripple. Do you want to change the color of only on the checkbox ripple or all the ripples in the app? Or do you want to disable the ripple altogether?.green-checkbox { .mat-ripple-element { background-color: $darkgreen !important; opacity: 0.5; } }i dont know, why its been deleted