In 2015, the Fine Gael/Labour government held a referendum on the legislation of gay marriage in Ireland. The government campaigned for a yes vote and were successful. Following the 2016 general election, Fine Gael retained control of the government as a minority government, made possible by a confidence and supply agreement with Fianna Fáíl, who agreed to abstain in confidence votes. Enda Kenny resigned as party leader in 2017, and following a leadership contest, Leo Varadkar became his successor as well as Taoiseach. In doing so, Varadkar became one of the first openly LGBT heads of government in the world. In 2018 the Fine Gael government held a referendum on the Eighth Amendment, the provision in the Irish constitution which forbid abortion. The party campaigned to repeal the amendment and were successful.