From e71c3439318e08edd724c5695966aec0dbc4aa16 Mon Sep 17 00:00:00 2001 From: Volker E Date: Thu, 15 Nov 2018 13:59:02 -0800 Subject: [PATCH] Reset legend `font-size` in OOUI HTMLForms It wrongly inherits generic elements style and results in smaller than expected `font-size`. With this patch we're applying the correct size. Change-Id: I42160fc28b22920fbe4a8de48405480ff736aa4d --- resources/src/mediawiki.htmlform.ooui.styles.less | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/resources/src/mediawiki.htmlform.ooui.styles.less b/resources/src/mediawiki.htmlform.ooui.styles.less index a156e8883a..7bec6f4fa7 100644 --- a/resources/src/mediawiki.htmlform.ooui.styles.less +++ b/resources/src/mediawiki.htmlform.ooui.styles.less @@ -16,6 +16,10 @@ .mw-htmlform-ooui { line-height: 1.4; // Override MediaWiki's default of `1.6` + .oo-ui-fieldsetLayout-header { + font-size: 100%; // Override MediaWiki's generic `legend` styling + } + .oo-ui-fieldLayout.oo-ui-labelElement > .oo-ui-fieldLayout-body > .oo-ui-fieldLayout-header { line-height: 16 / @ooui-font-size-browser / @ooui-font-size-base; } -- 2.20.1