mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-28 21:19:37 +08:00
🚑 Fix Button[href] 1px align bug in another way
revert adee2f3
close #12978
This commit is contained in:
parent
464286be12
commit
664089ecf6
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user