Skip to content

Commit

Permalink
🐛 Fix Button.Group large="size" icon only style
Browse files Browse the repository at this point in the history
close #18993
  • Loading branch information
afc163 committed Sep 25, 2019
1 parent 5aa32a3 commit 4f0dcbb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions components/button/style/mixin.less
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,11 @@
.button-size(@btn-height-lg; @btn-padding-lg; @btn-font-size-lg; 0);
line-height: @btn-height-lg - 2px;
}
&-lg > .@{btnClassName}.@{btnClassName}-icon-only {
.square(@btn-height-lg);
padding-right: 0;
padding-left: 0;
}
&-sm > .@{btnClassName},
&-sm > span > .@{btnClassName} {
.button-size(@btn-height-sm; @btn-padding-sm; @font-size-base; 0);
Expand All @@ -138,6 +143,11 @@
font-size: @font-size-base;
}
}
&-sm > .@{btnClassName}.@{btnClassName}-icon-only {
.square(@btn-height-sm);
padding-right: 0;
padding-left: 0;
}
}
// Base styles of buttons
// --------------------------------------------------
Expand Down

0 comments on commit 4f0dcbb

Please sign in to comment.