I did it with CSS. And it was a real pain.
The biggest problem is that the sliding action of the switch is done with a transition statement.
And in the code there’s a percentage amount that the switch slides left and right.
So when you have words on each side of a switch that are different lengths, yes or no are pretty similar, then the transition slide amount is different.
Doesn’t seem like it should be an issue, but I easily sunk one hour into it and I think gave up. I just went back to the default mechanism that aware allows for setting the text