Skip to content

Commit

Permalink
style(components): button 默认高度修复
Browse files Browse the repository at this point in the history
affects: @gio-design/components
  • Loading branch information
huskylengcb committed Nov 24, 2020
1 parent 5244ab2 commit 0774356
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/components/src/components/button/style/mixin.less
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
@btn-height-base: 36px;
@btn-height-lg: 40px;
@btn-height-sm: 30px;
@btn-square-size: 32px;
@btn-square-size: @btn-height-base;
@btn-square-size-lg: @btn-height-lg;
@btn-square-size-sm: @btn-height-sm;

Expand Down Expand Up @@ -208,6 +208,11 @@
& > * {
font-size: @size-font-16;
}
&.@{btnClassName} {
svg {
.square(@btn-square-size - 16px);
}
}
&.@{btnClassName}-large {
.square(@btn-square-size-lg);
.button-size(@btn-square-size-lg; 0; @size-font-18; @radius-border-small);
Expand Down

0 comments on commit 0774356

Please sign in to comment.