That's not a law UK: "While a specific dress code is not mandated, both men and women should dress in
appropriate, modest clothing."

Again it's just a suggestion. There is nothing that says, if you don't dress is x and x way, you will be punished by xx