Skip to main content
6-Contributor
October 11, 2024
Solved

Change the background of radio button upon selection

  • October 11, 2024
  • 1 reply
  • 824 views

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.

 

Best answer by nmutter

you mean like this (TWX 9.6.1)?

nmutter_0-1728664875859.png

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

 

1 reply

nmutter16-PearlAnswer
16-Pearl
October 11, 2024

you mean like this (TWX 9.6.1)?

nmutter_0-1728664875859.png

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