From 45990c1b95467c1c598d6b46e4abed9c4faf656a Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Tue, 26 Feb 2019 17:24:10 -0800 Subject: [PATCH] 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 --- resources/src/mediawiki.ui/components/forms.less | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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; + } } } -- 2.20.1