Skip to main content
6-Contributor
Oct 11, 2024 8:21 AM UTC
Solved

Change the background of radio button upon selection

Hello, I'm trying to change the background of a radio button on selection to look like the below snapshot 

MC_10978167_0-1728634205555.png

I've tried using style properties but theirs not option to change the background under "selected" or "pressed and selected". Only under focus and base we have the option to change the background but I would like to change the background on the selection of the radio button.

I've also tried custom CSS .myCustomClass .widget-content:selected{background: #92ef83} but it doesn't seem to work. 

Any work around to achieve this would be very helpful, thanks.

 

nmutterAnswer
17-Peridot
Oct 11, 2024 4:41 PM UTC

you mean like this (TWX 9.6.1)?

nmutter_0-1728664875859.png

.myradio ptcs-radio[aria-checked="true"]{
 background-color: black; 
}

 

1 reply

nmutter17-PeridotAnswer
17-Peridot
Oct 11, 2024 4:41 PM UTC

you mean like this (TWX 9.6.1)?

nmutter_0-1728664875859.png

.myradio ptcs-radio[aria-checked="true"]{
 background-color: black; 
}

 

Translate