Browse Source

Button: fix style of the only button in a button group (#9298)

FuryBean 7 năm trước cách đây
mục cha
commit
ddab60121a
1 tập tin đã thay đổi với 6 bổ sung0 xóa
  1. 6 0
      packages/theme-chalk/src/button.scss

+ 6 - 0
packages/theme-chalk/src/button.scss

@@ -188,6 +188,12 @@
       border-top-left-radius: 0;
       border-bottom-left-radius: 0;
     }
+    &:first-child:last-child {
+      border-top-right-radius: $--button-border-radius;
+      border-bottom-right-radius: $--button-border-radius;
+      border-top-left-radius: $--button-border-radius;
+      border-bottom-left-radius: $--button-border-radius;
+    }
     &:not(:first-child):not(:last-child) {
       border-radius: 0;
     }