From 664089ecf60d1338974a259ced5d5daea53f0850 Mon Sep 17 00:00:00 2001 From: afc163 Date: Sun, 11 Nov 2018 18:11:19 +0800 Subject: [PATCH] :ambulance: Fix Button[href] 1px align bug in another way revert adee2f3 close #12978 --- components/button/style/index.less | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/components/button/style/index.less b/components/button/style/index.less index d0d19d5177..855e04fadb 100644 --- a/components/button/style/index.less +++ b/components/button/style/index.less @@ -12,7 +12,10 @@ // Button styles // ----------------------------- .@{btn-prefix-cls} { - line-height: @line-height-base; + // Fixing https://github.com/ant-design/ant-design/issues/12978 + // It is a render problem of chrome, which is only happened in the codesandbox demo + // 0.001px solution works and I don't why + line-height: @line-height-base - 0.001px; .btn; .btn-default; @@ -186,13 +189,11 @@ } a.@{btn-prefix-cls} { - > span { - line-height: @btn-height-base - 2px; - } - &-lg > span { + line-height: @btn-height-base - 2px; + &-lg { line-height: @btn-height-lg - 2px; } - &-sm > span { + &-sm { line-height: @btn-height-sm - 2px; } }