I would like to change the color of the toggle to green from blue. I can't find a way in CSS to do it. Is there a way?
-
Is it in standard UI or the communities? I think you can do it using design tokens and override the colors.– manjit5190Mar 24, 2020 at 16:12
-
developer.salesforce.com/docs/atlas.en-us.lightning.meta/…– manjit5190Mar 24, 2020 at 16:13
-
Thanks for the response. It is Standard UI– ES RouterMar 29, 2020 at 21:45
1 Answer
Looks like it was deep in the CSS.
.THIS .slds-checkbox_toggle [type=checkbox]:checked+.slds-checkbox_faux_container .slds- checkbox_faux{ background-color:#218737!important; }