Published
- 1 min read
mat slide toggle change color
The solution for this is noted below
mat slide toggle change color
Solution
::ng-deep .mat-slide-toggle.mat-checked:not(.mat-disabled) .mat-slide-toggle-thumb {
background-color: blue; /*replace with your color*/
}
::ng-deep .mat-slide-toggle.mat-checked:not(.mat-disabled) .mat-slide-toggle-bar {
background-color: skyblue; /*replace with your color*/
}
Try other methods by searching on the site. That is if this doesn’t work