Skip to content

Commit e6367f2

Browse files
committed
perf: update buttongroup style
1 parent c9c53ba commit e6367f2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

components/button/style/mixin.less

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -271,10 +271,10 @@
271271
> span:first-child > .@{btnClassName} {
272272
margin-left: 0;
273273
}
274-
> .@{btnClassName}:first-child:last-child {
274+
> .@{btnClassName}:only-child {
275275
border-radius: @btn-border-radius-base;
276276
}
277-
> span:first-child:last-child > .@{btnClassName} {
277+
> span:only-child > .@{btnClassName} {
278278
border-radius: @btn-border-radius-base;
279279
}
280280

@@ -291,10 +291,10 @@
291291
}
292292

293293
&-sm {
294-
> .@{btnClassName}:first-child:last-child {
294+
> .@{btnClassName}:only-child {
295295
border-radius: @btn-border-radius-sm;
296296
}
297-
> span:first-child:last-child > .@{btnClassName} {
297+
> span:only-child > .@{btnClassName} {
298298
border-radius: @btn-border-radius-sm;
299299
}
300300
> .@{btnClassName}:first-child:not(:last-child),

0 commit comments

Comments
 (0)