Skip to content

Commit

Permalink
style: add @btn-line-height (#26014)
Browse files Browse the repository at this point in the history
  • Loading branch information
xrkffgg committed Aug 4, 2020
1 parent a2e4b22 commit 93d8d66
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion components/button/style/index.less
Expand Up @@ -19,7 +19,7 @@
// 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;
line-height: @btn-line-height;
.btn;
.btn-default;

Expand Down
2 changes: 2 additions & 0 deletions components/style/themes/default.less
Expand Up @@ -205,6 +205,8 @@
@btn-height-lg: @height-lg;
@btn-height-sm: @height-sm;

@btn-line-height: @line-height-base;

@btn-circle-size: @btn-height-base;
@btn-circle-size-lg: @btn-height-lg;
@btn-circle-size-sm: @btn-height-sm;
Expand Down

0 comments on commit 93d8d66

Please sign in to comment.