Changing color of checkbox itself
- This topic has 6 replies, 2 voices, and was last updated 1 year, 12 months ago by .
Viewing 6 reply threads
Viewing 6 reply threads
- You must be logged in to reply to this topic.
Hi Alex, I’ve a a multiselect checkbox field and would like to change the background color of the checkbox itself to white instead of default gray. Anyway to achieve this? thanks
You can add this to your Custom CSS:
.spjs-form-choice-wrap .spjs_chk_checkmark,
.spjs_radio_wrap .spjs_radio_checkmark {
background-color: white;
}
.spjs_chk_wrap input:checked~.spjs_chk_checkmark,
.spjs_radio_wrap input:checked~.spjs_radio_checkmark {
background-color: gray;
}
Alexander
I copied the code as is to my CSS file and checkboxes look same. The default checkbox color should be same color as the Explain textbox when editing.
I’m wondering if you have pasted the code in the correct place – can you show me a screenshot of your Custom CSS?
Alexander
I placed it withing my CSS file which is called from within custom CSS tab.
To ease the troubleshooting, can you add the CSS to the Custom CSS area directly?
Alternatively, try adding !important to the style properties like this:
.spjs-form-choice-wrap .spjs_chk_checkmark,
.spjs_radio_wrap .spjs_radio_checkmark {
background-color: white!important;
}
.spjs_chk_wrap input:checked~.spjs_chk_checkmark,
.spjs_radio_wrap input:checked~.spjs_radio_checkmark {
background-color: gray!important;
}
Alexander
!important did the trick. thank you!