🐛 Fix Button line-height style issue

close #18107
close #13214 too

caused by the fix of #12978

changing another way to fix #12978
This commit is contained in:
afc163 2019-08-07 14:55:14 +08:00
parent 109bd4ecde
commit 05181d552e

View File

@ -12,10 +12,7 @@
// Button styles
// -----------------------------
.@{btn-prefix-cls} {
// 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.001;
line-height: @line-height-base;
.btn;
.btn-default;
@ -197,6 +194,11 @@
a.@{btn-prefix-cls} {
line-height: @btn-height-base - 2px;
// 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.1px for padding-top solution works and I don't why
padding-top: 0.1px;
&-lg {
line-height: @btn-height-lg - 2px;
}