white text color when purple background is used
wrong check for class type