I am using md-slider
of Angular Material version 2.0.0-beta.8
I have selected the indigo-pink theme and imported it in
Here is how I solved in just a few minutes and got it working.
Add this two-line in style.css
, not in component CSS.
.mat-slide-toggle.mat-checked .mat-slide-toggle-bar {
background-color:#0056ff;//Your color
}
.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb {
background-color: #0056ff;//Your color
}