🚑 Fix Button[href] 1px align bug in another way

revert adee2f3

close #12978
This commit is contained in:
afc163 2018-11-11 18:11:19 +08:00
parent 464286be12
commit 664089ecf6
No known key found for this signature in database
GPG Key ID: 5F00908D72002306

View File

@ -12,7 +12,10 @@
// Button styles
// -----------------------------
.@{btn-prefix-cls} {
line-height: @line-height-base;
// 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.001px;
.btn;
.btn-default;
@ -186,13 +189,11 @@
}
a.@{btn-prefix-cls} {
> span {
line-height: @btn-height-base - 2px;
}
&-lg > span {
line-height: @btn-height-base - 2px;
&-lg {
line-height: @btn-height-lg - 2px;
}
&-sm > span {
&-sm {
line-height: @btn-height-sm - 2px;
}
}