Ensure that span.mw-ui-icon is inline-block
authorjdlrobson <jdlrobson@gmail.com>
Wed, 11 Apr 2018 20:47:11 +0000 (13:47 -0700)
committerjdlrobson <jdlrobson@gmail.com>
Wed, 11 Apr 2018 20:53:09 +0000 (13:53 -0700)
In the Minerva skin there are several icons that are spans.
This seems a sensible default and I'd rather keep this rule with
the other definitions rather than inside Minerva

Change-Id: I3d1ed6e4a165f48244e760752342c712047a07d8

resources/src/mediawiki.ui/components/icons.less

index d185b24..461de2f 100644 (file)
        min-height: @iconSize;
        min-width: @iconSize;
 
+       // If an inline element has been marked as a mw-ui-icon element it must be inline-block
+       span& {
+               display: inline-block;
+       }
+
        // Standalone icons
        //
        // Markup: