ionic 4 - how can i change the background of the ion-toggle button.
Try this.
ion-toggle{
--background-checked:red; //checked TRUE
--background:green; //checked FALSE
--handle-background:yellow; // BUTTON CIRCLE checked FALSE
--handle-background-checked: white; // BUTTON CIRCLE checked TRUE
}
See more at Ionic documentation Ion Toggle custom css
2 Likes
Thank u. Its working
1 Like