Driving with colorful sunglasses ?

Hello , I was recently at the optician to buy a pair of sunglasses. I decided to buy a normal pair of glasses with brown glasses. Then the optician told me that you can’t stop with colorful glasses (so everything except normal-black) and you have to put other glasses into these glasses. One reason for this is that it would change the traffic light colors etc. But I’ve never heard such a thing and already many people have seen the ones with different colours. I didn’t find anything on the Internet. Does anyone know what the legal situation looks like?