The European Union takes priority over UK laws due to the European Communities Act 1972. ECA 1972 could be repealed and withdraw from the EU.
Human Rights Act 1998 is a major set of laws and while it can be repealed people would not be happy and the government would probable lose power in the next election