Change the text colour on radio button on toggle

Hi there,

I am looking for a way to change the radio button text on toggle.
I managed to customise the radio button itself, so it no longer has a tick box. Instead I want it to be like a button, and once pressed it changes the colour. I managed to make this work, but I can’t change the text colour on a toggle state.

Here is a link to see the project.

If anyone has some tips, I would greatly appreciate them :slight_smile:

Hi @Eugene_Soch I didn’t checked your code but easiest way is to add code on your click listener. Feel free to search internet for keywords like change text on click

here is simple example

Could a quick work-around be to change the selected button’s background color to say blue rather than white, so that the text remains readable?