MWUI: Vertically align the icon pseudo elements
authorBaha <bmansurov@wikimedia.org>
Mon, 8 Aug 2016 22:03:06 +0000 (18:03 -0400)
committerBaha <bmansurov@wikimedia.org>
Mon, 15 Aug 2016 19:37:52 +0000 (15:37 -0400)
The icon element's image was not always in the vertical center depending
on the line height of the icon.

Bug: T142391
Change-Id: I4d73c27286a623cb82e2f8801c919ae6f8007e59

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

index 9b9d324..b4edc50 100644 (file)
@@ -26,6 +26,7 @@
 
 .mw-ui-icon {
        position: relative;
+       line-height: @iconSize;
        min-height: @iconSize;
        min-width: @iconSize;