You are viewing limited content. For full access, please sign in.

Question

Question

style radio button in modern designer

asked two days ago

I'm looking to change the look of a radio button field when it is checked.

I want the text to be white when the choice is selected.  I don't care which choice, just want the text to be white so that it is legible. 

 

I've got this:

.radio input:checked + label {
    background: maroon;
   color: white !important;
    }

as my css, but the font color doesn't change.

 

Works in classic designer

 

0 0

Replies

replied two days ago Show version history

Try this:

.radio input:checked + .option-label span {
  color: white; 
  background: maroon;
}

 

3 0
You are not allowed to follow up in this post.

Sign in to reply to this post.