Has Kanaya always been a rainbow drinker or was there a transformation caused by something?

There was something that either activated the abilities or transformed her into the undead. It’s possible that it was caused by being exposed to the Witch of Life’s blood or that her corpse was kissed by a Blood player or that she just needed to die in order for her latent abilities to come to fruition. We just don’t know.