It is condescending. If the teachers were adults, they wouldn’t need to be told how to dress.
I teach in a Texas district that has a pretty strict dress code for students and teachers alike. Only two years ago were men allowed to grow facial hair. When I go to conferences that include teachers from other districts, it always amazes me at the way many of them dress like floozies.