The story
From the claim that such Democrats would sooner vote for a yellow dog, if it ran on the Democratic ticket, than a Republican.
Etymology from Wiktionary, CC BY-SA 4.0.
Today it means: A Democrat, especially a Southern one, who votes a straight party ticket; one who invariably votes for Democratic candidates. Full definition →
From the claim that such Democrats would sooner vote for a yellow dog, if it ran on the Democratic ticket, than a Republican.
Etymology from Wiktionary, CC BY-SA 4.0.