Skip to content

Commit c147a5d

Browse files
TommasoAllegrettimdojulien-deramond
authored
Docs: add "Border radius" section for Forms > Input group (#40776)
Co-authored-by: Mark Otto <markdotto@gmail.com> Co-authored-by: Julien Déramond <juderamond@gmail.com>
1 parent c9cb0d6 commit c147a5d

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

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+
Due to limitations of browser support at the time, `border-radius` styles can only be applied to the first and last children within the `.input-group` class. Any non-visible element in one of those positions will cause the input group to render incorrectly. This will unfortunately not be fixed until v6 most likely.
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 type="text" class="form-control d-none" placeholder="Hidden input" aria-label="Hidden input" aria-describedby="visible-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)