From: Roan Kattouw Date: Wed, 27 Feb 2019 01:24:10 +0000 (-0800) Subject: mw.ui forms: Style individual form field warnings, as well as errors X-Git-Tag: 1.34.0-rc.0~2712^2 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22articles%22%2C%22id_article=%24id_article%22%29%20.%20%22?a=commitdiff_plain;h=45990c1b95467c1c598d6b46e4abed9c4faf656a;p=lhc%2Fweb%2Fwiklou.git mw.ui forms: Style individual form field warnings, as well as errors If you put a inside a vform-field, it would display correctly, but a wouldn't. Make it work for both. Change-Id: I9e582ade2fca87782aa7be38774fa4943dc196da --- diff --git a/resources/src/mediawiki.ui/components/forms.less b/resources/src/mediawiki.ui/components/forms.less index 09bf9cab24..5fa8e5a3a2 100644 --- a/resources/src/mediawiki.ui/components/forms.less +++ b/resources/src/mediawiki.ui/components/forms.less @@ -134,9 +134,12 @@ // 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; + } } }