According to numerous news articles I have seen in the last few days, Kamala Harris may be looking for a white male Vice President pick, to appeal to a wider range of voters. [I don't think she has stated this explicitly; this is the projection of political analysts based on the strategic value of the decision]
As far as I understand, choosing someone for a job based on skin color is racial discrimination and illegal, unless skin color is a factor in the ability to perform the job.
Does the fact that people will vote for a white male (based on their own baseless racial discrimination!) make it legal to pick someone who will increase the likelihood of election? Or does the fact that skin color has no bearing on the ability to carry out the duties of Vice President make this illegal?