mw-ui-radio, mw-ui-checkbox: Don't reset every font style
authorSanthosh Thottingal <santhosh.thottingal@gmail.com>
Tue, 26 Feb 2019 12:02:00 +0000 (17:32 +0530)
committerSanthosh Thottingal <santhosh.thottingal@gmail.com>
Thu, 28 Feb 2019 05:59:57 +0000 (11:29 +0530)
The following existing style:

.client-js .mw-ui-radio:not( #noop ) {
 * {
font: inherit;
  }
}

is a strong reset, preventing any font style customization such
as a bold label for .mw-ui-radio.

Change it only to font-size as required for the original reason
for override. Same for .mw-ui-checkbox

I am not sure whether this override is required now, but not going
in to that now.

Change-Id: I5d1815bcfa897bdb03c81be11f63e1acb9412c10

resources/src/mediawiki.ui/components/checkbox.less
resources/src/mediawiki.ui/components/radio.less

index a1646a8..08612d0 100644 (file)
@@ -43,7 +43,7 @@
 
        * {
                // Reset font sizes, see T74727
-               font: inherit;
+               font-size: inherit;
                vertical-align: middle;
        }
 
index d9b7c6d..c0865c6 100644 (file)
@@ -44,7 +44,7 @@
 
        * {
                // reset font sizes (see T74727)
-               font: inherit;
+               font-size: inherit;
                vertical-align: middle;
        }