If you put a <span class="error"> inside a vform-field, it would display
correctly, but a <span class="warning"> wouldn't. Make it work for both.
Change-Id: I9e582ade2fca87782aa7be38774fa4943dc196da
// This specifies styling for individual field validation error messages.
// Show them below the fields to prevent line break glitches, and leave
// some space between the field and the error message box.
- .mw-ui-vform-field .error {
- display: block;
- margin-top: 5px;
+ .mw-ui-vform-field {
+ .error,
+ .warning {
+ display: block;
+ margin-top: 5px;
+ }
}
}