There was previous legislation which I believe was superceded by the 2011 act. IIRC legislation was introduced soon after WW2.
As well as various safeguards to protect young fingers etc it also limited the maximum voltage for powered toys to 24v. Previously , I think, there had been 110v locos!