When I was managing groups of young engineers at a startup, I was mainly concerned that they wear proper safety equipment. Most of the young techs wore hemmed 'cargo' shorts and a polo or short sleeved shirt given 100+F temperatures outdoors. A delegation came to me with a dress code request. A recent hire, a mathematician from Romania, tried to blend in with his American colleagues and deal with the desert climate by wearing snug short shorts and tight cycling shirts in bright pastel colors.
The lead from the data center delegation wore neat denim shorts below the knee and a loose size XXl dress shirt, the latter indicating his wife's preference for shopping at Kohls and Macy's. The lead programmer, an USAF veteran, wore olive drab cargo shorts hemmed at the knee and a black T-shirt from the previous year's SANS conference. Normally, I would not notice these details except for their odd request
Both groups were upset by the short length of the new member's shorts. They advised me that only females wore shorts that revealed the upper leg (in our culture). While they did not care if he was gay (he was hetero with two children), he should adhere to the unwritten dress code and wear shorts with a minimum 9" inseam. Beneath the knee preferred for serious work.
I dismissed the delegation and spoke to the new worker at our scheduled review meeting. I gently suggested he notice how his co-workers dressed and consider longer garments. The baffled mathematician could not understood why people would not dress as minimally as possible in the heat and that his small family saved money by sharing clothes. Logical. (He also offered to teach cycling to his overweight coworkers to replace the ubiquitous pickup trucks, but that is another story.)
The next week he came to work wearing long sleeved black dress shirts and slacks with black safety shoes exactly like his manager, mitigated by driving his family's bright pink tiny Eco car.