Make sure, that a tags and input tags with mw-ui-button has the same height
authorFlorian <florian.schmidt.stargatewissen@gmail.com>
Sat, 24 Oct 2015 18:34:53 +0000 (20:34 +0200)
committerFlorian <florian.schmidt.stargatewissen@gmail.com>
Sat, 24 Oct 2015 18:34:53 +0000 (20:34 +0200)
Line-height inherited from another element behave different for input and a
tags. While a-tags correctly inherit the line-height from a parent element,
input tags doesn't. Fix that by adding the correct line-height (normal) to
a tags with mw-ui-button.

Bug: T116427
Change-Id: I4822754157b95094605209111e72bce11d34b077

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

index 77b3f9d..d66973a 100644 (file)
@@ -243,6 +243,12 @@ a.mw-ui-button {
        &:focus {
                text-decoration: none;
        }
+
+       // a-tags behave different to inputs if the line-height attribute is inherited
+       // from another element (e.g. mw-body-content). They appear bigger as input
+       // tags. See Bug T116427. To fix that, apply the correct line-height (used
+       // for inputs) to a-tags, too.
+       line-height: normal;
 }
 
 // Button groups