A bill in Hungary that would ban schools from teaching about homosexuality or gender change issues is a “shame” and goes against European Union values, Ursula von der Leyen said Wednesday.

“This bill clearly discriminates against people on the basis of their sexual orientation and it goes against all the fundamental values of the EU,” the president of the European Commission told a joint press conference with the Belgian prime minister.

“I have instructed my responsible commissioners to write a letter to the Hungarian authorities expressing our legal concerns before the bill enters into force,” she added.

The bill to ban LGBTI+ content in schools, pinned to a broader law on tougher penalties for pedophilia, was passed by lawmakers on June 15.