The CSS for the Switch component had a conflict regarding background color Also generally it makes sense to put the CSS into the components