Skip to content

Commit

Permalink
fix: buttongroup style bug
Browse files Browse the repository at this point in the history
  • Loading branch information
tangjinzhou committed Jul 18, 2018
1 parent 0b249a0 commit 38b18d3
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions components/button/style/mixin.less
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,12 @@
> span:first-child > .@{btnClassName} {
margin-left: 0;
}
> .@{btnClassName}:first-child:last-child {
border-radius: @btn-border-radius-base;
}
> span:first-child:last-child > .@{btnClassName} {
border-radius: @btn-border-radius-base;
}

> .@{btnClassName}:first-child:not(:last-child),
> span:first-child:not(:last-child) > .@{btnClassName} {
Expand All @@ -285,6 +291,12 @@
}

&-sm {
> .@{btnClassName}:first-child:last-child {
border-radius: @btn-border-radius-sm;
}
> span:first-child:last-child > .@{btnClassName} {
border-radius: @btn-border-radius-sm;
}
> .@{btnClassName}:first-child:not(:last-child),
> span:first-child:not(:last-child) > .@{btnClassName} {
border-bottom-left-radius: @btn-border-radius-sm;
Expand Down

0 comments on commit 38b18d3

Please sign in to comment.