aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2018-09-17 12:02:56 -0700
committerXhmikosR <[email protected]>2018-09-18 14:51:34 +0300
commit029f92c5e56e6f2a21ec2f217b683273b80b91b7 (patch)
tree4227892c672f21a5b1f7f0b5b5e0a31e48f331c4
parent876e3203641ceb1f7ba22a1a8b72eae7ef35d99f (diff)
downloadbootstrap-029f92c5e56e6f2a21ec2f217b683273b80b91b7.tar.xz
bootstrap-029f92c5e56e6f2a21ec2f217b683273b80b91b7.zip
Document input group wrapping behavior and override via utility class
Fixes #25409
-rw-r--r--site/docs/4.1/components/input-group.md14
1 files changed, 14 insertions, 0 deletions
diff --git a/site/docs/4.1/components/input-group.md b/site/docs/4.1/components/input-group.md
index 0e639acd6..cdbfa794a 100644
--- a/site/docs/4.1/components/input-group.md
+++ b/site/docs/4.1/components/input-group.md
@@ -52,6 +52,20 @@ Place one add-on or button on either side of an input. You may also place one on
{% endcapture %}
{% include example.html content=example %}
+## Wrapping
+
+Input groups wrap by default via `flex-wrap: wrap` in order to accommodate custom form field validation within an input group. You may disable this with `.flex-nowrap`.
+
+{% capture example %}
+<div class="input-group flex-nowrap">
+ <div class="input-group-prepend">
+ <span class="input-group-text" id="addon-wrapping">@</span>
+ </div>
+ <input type="text" class="form-control" placeholder="Username" aria-label="Username" aria-describedby="addon-wrapping">
+</div>
+{% endcapture %}
+{% include example.html content=example %}
+
## Sizing
Add the relative form sizing classes to the `.input-group` itself and contents within will automatically resize—no need for repeating the form control size classes on each element.