Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Customize ion-checkbox default background-color

ion-checkboxes are great, but I don't know how I could customize the background-color of the checkbox to be something other than the default white? I know how to customize the checkbox color that is shown when the checkbox is checked, but not the unchecked color.

like image 244
Ville Miekk-oja Avatar asked Mar 17 '23 13:03

Ville Miekk-oja


1 Answers

I did it like this:

.checkbox input:checked:before, .checkbox input:checked + .checkbox-icon:before {
  background: red !important; 
  border-color: red !important;
}
like image 189
David Prieto Avatar answered Mar 23 '23 23:03

David Prieto