aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartijn Cuppens <[email protected]>2020-06-04 16:48:17 +0200
committerMark Otto <[email protected]>2020-06-15 19:04:19 -0700
commit93f1028e82fb66afa5a34f221f51e5620c9cd2c4 (patch)
tree300db73086b106cffaa9f0c4d1bcd167e56a36e0
parent8b7b234fd1c840a23ac2ca2ba69a3a2a2abf3100 (diff)
downloadbootstrap-93f1028e82fb66afa5a34f221f51e5620c9cd2c4.tar.xz
bootstrap-93f1028e82fb66afa5a34f221f51e5620c9cd2c4.zip
Clarify removal of border radii
-rw-r--r--scss/_button-group.scss9
1 files changed, 5 insertions, 4 deletions
diff --git a/scss/_button-group.scss b/scss/_button-group.scss
index 8be6c0f52..b15c6292e 100644
--- a/scss/_button-group.scss
+++ b/scss/_button-group.scss
@@ -48,11 +48,12 @@
@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);
}