As the documentation states, neither the switch nor the slider gadget should be using any style classes.