Browse Source

🐛 Fix Button line-height style issue

close #18107
close #13214 too

caused by the fix of #12978

changing another way to fix #12978
pull/18139/head
afc163 5 years ago
parent
commit
05181d552e
  1. 10
      components/button/style/index.less

10
components/button/style/index.less

@ -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;
}

Loading…
Cancel
Save