Skip to content

Commit 9e31375

Browse files
Docs: add Border radius section for Input-group
1 parent e3e00b5 commit 9e31375

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

site/content/docs/5.3/forms/input-group.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,18 @@ Input groups wrap by default via `flex-wrap: wrap` in order to accommodate custo
5959
</div>
6060
{{< /example >}}
6161

62+
## Border radius
63+
64+
The `border-radius` is only applied to the first and last children of the element with the `.input-group` class. Any non-visible element in one of those positions will cause the `border-radius` to appear with no style.
65+
66+
{{< example >}}
67+
<div class="input-group">
68+
<span class="input-group-text" id="visible-addon">@</span>
69+
<input type="text" class="form-control" placeholder="Username" aria-label="Username" aria-describedby="visible-addon">
70+
<input style="display: none;" type="text" class="form-control" placeholder="Hidden Input" aria-label="HiddenInput" aria-describedby="invisible-addon">
71+
</div>
72+
{{< /example >}}
73+
6274
## Sizing
6375

6476
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.

0 commit comments

Comments
 (0)