Modern U.S. elections have their problems, but at least election laws aren't as blatantly racist as they were as late as the 1950s. For instance, in Oklahoma, in the 1950s, if you wanted to run for public office you first had to file a form with the state declaring what race you were. There were only two options. If you were of "African descent" you were "Negro." If you were anything else (Chinese, Australian aboriginal, etc.) you were "White." If you indicated you were "Negro," then this descriptive term was placed in parentheses after your name on the ballot. "Whites" were not similarly labeled.
A black Oklahoma City attorney, A.B. McDonald, filed suit against the State Election Board in 1954 alleging discrimination. The District Court dismissed his case
, ruling that, "The placing of the word 'Negro' on a ballot after the name of a candidate is merely descriptive and properly serves to inform the electors of the fact that the candidate is of African descent."
The Supreme Court eventually overturned the District Court's ruling, deciding that the Oklahoma law was unconstitutional. As for A.B. McDonald, I haven't been able to find much information on his subsequent career. All I found was a short paragraph in Jet magazine (Mar 1959)
indicating that he had some other problems in his life: