Hey everyone.
This use case came up in one of the communities I help out in and I noticed that some have asked about this but if you want to change the input color for radio buttons and checkboxes inside your new forms, you can target just them with the trick above. Normally, the input color dictates what you type inside of the input fields as well as radio buttons, single checkboxes and multi-checkboxes.
Normally, this works well but if you have dark form background, the text input might be too dark to see but it’s needed otherwise you are unable to see the inputted text.
With the CSS trick above, you can manage this without having to make various changes within the settings.
/*used for single and multichoice*/
.form-section [data-hook="label-wrapper"],
/*used for single checkbox*/
.form-section [data-hook="label-wrapper"] span{
color: darkmagenta;
}
You can see the result below:
span is needed for the single checkbox as the text is nested inside of the [data-hook] so if you have a single checkbox, make sure you use
.form-section [data-hook="label-wrapper"] span
PS. I took a look at the hover and disabled state and these elements aren’t changed by the settings so there should be no need to do it but you could customize the it if you need.


