From 70b76e37dd659d26fa7e08a234e5745fedfcad5f Mon Sep 17 00:00:00 2001 From: jdlrobson Date: Wed, 11 Apr 2018 13:47:11 -0700 Subject: [PATCH] Ensure that span.mw-ui-icon is inline-block 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 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/resources/src/mediawiki.ui/components/icons.less b/resources/src/mediawiki.ui/components/icons.less index d185b24ab2..461de2f0ff 100644 --- a/resources/src/mediawiki.ui/components/icons.less +++ b/resources/src/mediawiki.ui/components/icons.less @@ -30,6 +30,11 @@ 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: -- 2.20.1