Skip to content

Commit

Permalink
🐛 Fix Button text not align center in Chrome
Browse files Browse the repository at this point in the history
revert solution of 05181d5

close #19972
close #20058
  • Loading branch information
afc163 committed Dec 3, 2019
1 parent f2cae43 commit 5a7c6e3
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion components/button/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,15 @@
// Button styles
// -----------------------------
.@{btn-prefix-cls} {
line-height: @line-height-base;
// Fixing https://github.com/ant-design/ant-design/issues/12978
// Fixing https://github.com/ant-design/ant-design/issues/20058
// Fixing https://github.com/ant-design/ant-design/issues/19972
// Fixing https://github.com/ant-design/ant-design/issues/12978
// Fixing https://github.com/ant-design/ant-design/issues/18107
// 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 - 0.001;
.btn;
.btn-default;

Expand Down

0 comments on commit 5a7c6e3

Please sign in to comment.