Participating in enacting a law opposing Islamic rulings

A: If some articles in the constitution contradict Islam, it is impermissible to take part in preparing it. If not, there is nothing wrong with that.May Allah grant us success. May peace and blessings be upon our Prophet Muhammad, his family and Companions.