Reset legend `font-size` in OOUI HTMLForms
authorVolker E <volker.e@wikimedia.org>
Thu, 15 Nov 2018 21:59:02 +0000 (13:59 -0800)
committerVolker E <volker.e@wikimedia.org>
Thu, 15 Nov 2018 21:59:02 +0000 (13:59 -0800)
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

index a156e88..7bec6f4 100644 (file)
 .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;
        }