Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

mat slide toggle change color

::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*/
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #mat #slide #toggle #change #color
ADD COMMENT
Topic
Name
3+3 =