The alert element has no state of its own, but it can be styled based on the validity of its parent element. The default style is to hide the element when the parent control is valid:
alert
.pc-valid xf\:alert { display : none; }