A wetness indicator is a common feature in many disposable diapers and toilet training pants.
It is a feature that reacts to exposure of liquid as a way to discourage the wearer to urinate in the training pants, or as an indicator to a caregiver that a diaper needs changing.
[1][2]