diff --git a/scss/_input-group.scss b/scss/_input-group.scss index cf4d4436fdb0..cee6008a6dd8 100644 --- a/scss/_input-group.scss +++ b/scss/_input-group.scss @@ -82,11 +82,11 @@ } } - .btn + .btn, - .btn + .input-group-text, - .input-group-text + .input-group-text, - .input-group-text + .btn { - margin-left: -$input-border-width; + .input-group-text, + .btn { + &:not(:first-child) { + margin-left: -$input-border-width; + } } } @@ -179,6 +179,7 @@ .input-group > .input-group-append:not(:last-child) > .btn, .input-group > .input-group-append:not(:last-child) > .input-group-text, .input-group > .input-group-append:last-child > .btn:not(:last-child):not(.dropdown-toggle), +.input-group > .input-group-append:last-child > .dropdown-toggle:nth-last-child(n + 3), .input-group > .input-group-append:last-child > .input-group-text:not(:last-child) { @include border-right-radius(0); } diff --git a/site/docs/4.2/components/input-group.md b/site/docs/4.2/components/input-group.md index cdbfa794a69a..c6928bbb6012 100644 --- a/site/docs/4.2/components/input-group.md +++ b/site/docs/4.2/components/input-group.md @@ -211,17 +211,32 @@ Multiple add-ons are supported and can be mixed with checkbox and radio input ve +
+ +
+ + +
+
+
-
{% endcapture %}