Changing radio button text color when active?

Trying to figure out how to change the radio button text color when a radio is active - can’t seem to figure it out

If I use an interaction it will work initially but if the radio is switched the first radio that was clicked keeps the new styling - I need it to revert back to original styling when a new radio button is active

Anyone know how this can be done?

I would love to know if there’s a cleaner way but could you use the interactions to first set siblings or all with that class to inactive and then set to new one to active?

Yeah what I ended up doing was setting an interaction on each one

So each one sets itself to the color when clicked and resets the other two

I’ve found that clonable. It’s working like a charm :v:

You just need a small embedded

Finsweet has a simple ‘Input Active’ solution for this here. :+1:

1 Like