From 93d8d661719d2259b52bf370faf01fb10d5527e0 Mon Sep 17 00:00:00 2001 From: xrkffgg Date: Tue, 4 Aug 2020 19:56:10 +0800 Subject: [PATCH] style: add @btn-line-height (#26014) --- components/button/style/index.less | 2 +- components/style/themes/default.less | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/components/button/style/index.less b/components/button/style/index.less index 6344ded98167..db6918f6f88e 100644 --- a/components/button/style/index.less +++ b/components/button/style/index.less @@ -19,7 +19,7 @@ // Fixing https://github.com/ant-design/ant-design/issues/13214 // 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; + line-height: @btn-line-height; .btn; .btn-default; diff --git a/components/style/themes/default.less b/components/style/themes/default.less index 3f07a58a580e..deca4764e5ef 100644 --- a/components/style/themes/default.less +++ b/components/style/themes/default.less @@ -205,6 +205,8 @@ @btn-height-lg: @height-lg; @btn-height-sm: @height-sm; +@btn-line-height: @line-height-base; + @btn-circle-size: @btn-height-base; @btn-circle-size-lg: @btn-height-lg; @btn-circle-size-sm: @btn-height-sm;