Hungary’s parliament has voted to repeal controversial provisions in its child protection legislation that campaigners said stigmatized LGBTQ+ people, marking one of the most significant reversals of former prime minister Viktor Orbán’s social policies. The amendments were approved on Tuesday by the government of Prime Minister Péter Magyar, which has been working to dismantle parts of Orbán’s legacy since taking office earlier this year.

The changes remove measures introduced under the 2021 Child Protection Law that banned the “portrayal or promotion of homosexuality or transgenderism”. Critics argued the legislation fuelled discrimination against LGBTQ+ people and restricted discussion of sexual orientation and gender identity in schools, media and public life.

LGBTQ+ organisations welcomed the vote, although activists said further reforms are needed. “We are very happy that this got adopted,” Tamás Dombos of Hungary’s Háttér Association told the BBC. “We’ve been fighting this so-called child protection law for five years.” He added that while there had been concerns about the draft legislation, “most of those problems have been fixed”.