Who passed the civil rights act? The democrats. Who tried to block the civil rights act from passing? The republicans. The great ideological switch happened as FDR passed the new deal. The democrats became progressive and the republicans more conservative.
Learn some history.