That's very different. Its more like a religion telling men to always wear gloves for modesty reasons and the government saying that you can't wear them in school.
The reason "for modesty" and only one gender is kind of important. That makes this a gender equality issue.
The law still feels a bit weird, but Islam has to modernize, just like Christianity is doing. Both have a lot of work left and this government is probably more islamophobic than they care about equality.