Toggle Not Working
I am making this course on teaching the audience how to use an app. I am currently on lights section and have got most of it to work.
Here is what it is suppose to do: When the toggle is turned "on" it goes from white to yellow, the slider moves to the right and turns yellow and the light icon next to the name of the light turns purple. When the toggle is turned "off", the switch goes back to white, the slide moves to the left and shows just the ball (yellow part is hidden), and the light icon turns back to grey. Along with if the users decides to move the slider to the right, then the toggle turns on (yellow) and the light icon turns purple. If the user wants to move the slider to the left, then the toggle turns off (white) and the light icon turns to grey.
What I have working so far.... The sliders work for on and off. They turn on the toggle and the light icon, then turn the toggle off and the light to grey. PERFECT. The toggle is another story. If you click the toggle once the slider only moves and the light does not turn purple. IF you click the toggle again, the slider stays on but the light icon then changes to purple. Once you drag the slider to "off" then you can't click the toggle anymore.
I really need help figuring this out. The light is an image that is in a hidden state, the toggle is a picture with normal and selected states, and the slider is an image that I inserted in the "thumb styles", hidden by the background so you can't see the "yellow line/bar". Hope that all made sense. I have attached slide here.