From 86c11e5eb54c44c1b63c594a613794426ca3c7df Mon Sep 17 00:00:00 2001 From: afc163 Date: Wed, 17 Oct 2018 11:07:25 +0800 Subject: [PATCH] Fix vertical align issue of empty button close #12681 --- components/button/style/index.less | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/components/button/style/index.less b/components/button/style/index.less index 8057a0a3fa..8fb398bffb 100644 --- a/components/button/style/index.less +++ b/components/button/style/index.less @@ -177,6 +177,11 @@ .christmas&-primary&-sm:before { background-size: 56px; } + + // https://github.com/ant-design/ant-design/issues/12681 + &:empty { + vertical-align: top; + } } a.@{btn-prefix-cls} {