This election campaign was overshadowed by the issue of slavery , which was illegal in the northern states of the US , but was still allowed in the south ( although the slave trade had been banned for decades ) .