From adee2f33294b9223bda959e6ae27b4d7dadcec49 Mon Sep 17 00:00:00 2001 From: afc163 Date: Tue, 6 Nov 2018 15:41:50 +0800 Subject: [PATCH] Fix Button[href] 1px align bug close #12978 --- components/button/style/index.less | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/components/button/style/index.less b/components/button/style/index.less index 5455e443a3..d0d19d5177 100644 --- a/components/button/style/index.less +++ b/components/button/style/index.less @@ -186,11 +186,13 @@ } a.@{btn-prefix-cls} { - line-height: @btn-height-base - 2px; - &-lg { + > span { + line-height: @btn-height-base - 2px; + } + &-lg > span { line-height: @btn-height-lg - 2px; } - &-sm { + &-sm > span { line-height: @btn-height-sm - 2px; } }