I'm trying to figure out how (and if) I can use 2 colors for an ionic toggle checkbox, so that for instance unselected will be toggle-assertive and selected will be toggle-balanced, all functional with animations.
Anyone has done it before?
I'm trying to figure out how (and if) I can use 2 colors for an ionic toggle checkbox, so that for instance unselected will be toggle-assertive and selected will be toggle-balanced, all functional with animations.
Anyone has done it before?
Copyright © 2021 Jogjafile Inc.
Just set the .toggle input + track color to what you want. for instance this will be assertive when not checked and possitive when checked:
CSS:
HTML: