South Africa abstained to vote on UN resolution against Russian large attack on Ukraine.
West didn't ignore apartheid, they quietly supported it, because USSR supported Mandela and anti-apartheid struggle. Kinda "enemy of my enemy is my friend".
IMHO that was the stupidest position of the US, they should've "united" with USSR on anti-apartheid position.
When one factor "Capitalism vs. Communism" is the lens through which you view the world, then "are they on our side" becomes more important than "are they good people".
That is why the west supported some terrible regimes, including Apartheid South Africa and Pinochet in Chile. Because they could claim to be "anti-communist".
The old regime in south Africa prior to 1994 was a "western ally". Reagan and Thatcher turned a blind eye to Apartheid (and sometime supported it) because the South African government was "anti-communist", or at least they dressed their oppression in that language of "total onslaught of Soviet communism" and that was more important to the west.
The new regime in south Africa has some nostalgia for the assistance offered to them by the USSR back then, that is why they abstained on the vote on UN resolution against Russian attack on Ukraine.