]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Clarify removal of border radii
authorMartijn Cuppens <martijn.cuppens@gmail.com>
Thu, 4 Jun 2020 14:48:17 +0000 (16:48 +0200)
committerMark Otto <otto@github.com>
Tue, 16 Jun 2020 02:04:19 +0000 (19:04 -0700)
scss/_button-group.scss

index 8be6c0f52fa16f216e093f87f8d5ba792c42c02b..b15c6292edfe31c8fee09d23828e933b59b5715a 100644 (file)
     @include border-right-radius(0);
   }
 
-  // - Target second buttons which are not part of toggle buttons
-  // - Target third or more child
-  // - Target buttons in a button group
-  > :not(.btn-check) + .btn,
+  // The left radius should be 0 if the button is:
+  // - the "third or more" child
+  // - the second child and the previous element isn't `.btn-check` (making it the first child visually)
+  // - part of a btn-group which isn't the first child
   > .btn:nth-child(n + 3),
+  > :not(.btn-check) + .btn,
   > .btn-group:not(:first-child) > .btn {
     @include border-left-radius(0);
   }