Skip to content

Commit c9c53ba

Browse files
committed
fix: buttongroup style bug
1 parent 3219184 commit c9c53ba

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

components/button/style/mixin.less

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,12 @@
271271
> span:first-child > .@{btnClassName} {
272272
margin-left: 0;
273273
}
274+
> .@{btnClassName}:first-child:last-child {
275+
border-radius: @btn-border-radius-base;
276+
}
277+
> span:first-child:last-child > .@{btnClassName} {
278+
border-radius: @btn-border-radius-base;
279+
}
274280

275281
> .@{btnClassName}:first-child:not(:last-child),
276282
> span:first-child:not(:last-child) > .@{btnClassName} {
@@ -285,6 +291,12 @@
285291
}
286292

287293
&-sm {
294+
> .@{btnClassName}:first-child:last-child {
295+
border-radius: @btn-border-radius-sm;
296+
}
297+
> span:first-child:last-child > .@{btnClassName} {
298+
border-radius: @btn-border-radius-sm;
299+
}
288300
> .@{btnClassName}:first-child:not(:last-child),
289301
> span:first-child:not(:last-child) > .@{btnClassName} {
290302
border-bottom-left-radius: @btn-border-radius-sm;

0 commit comments

Comments
 (0)