]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Docs: add "Border radius" section for Forms > Input group (#40776)
authorTommaso Allegretti <61681908+TommasoAllegretti@users.noreply.github.com>
Wed, 9 Apr 2025 18:29:54 +0000 (20:29 +0200)
committerGitHub <noreply@github.com>
Wed, 9 Apr 2025 18:29:54 +0000 (20:29 +0200)
Co-authored-by: Mark Otto <markdotto@gmail.com>
Co-authored-by: Julien Déramond <juderamond@gmail.com>
site/content/docs/5.3/forms/input-group.md

index d984a485bc298b5474d5d7e0c167a056a2f82261..6de39e58b48537628a57e3efe700bbf1547cd76a 100644 (file)
@@ -59,6 +59,18 @@ Input groups wrap by default via `flex-wrap: wrap` in order to accommodate custo
 </div>
 {{< /example >}}
 
+## Border radius
+
+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.
+
+{{< example >}}
+<div class="input-group">
+  <span class="input-group-text" id="visible-addon">@</span>
+  <input type="text" class="form-control" placeholder="Username" aria-label="Username" aria-describedby="visible-addon">
+  <input type="text" class="form-control d-none" placeholder="Hidden input" aria-label="Hidden input" aria-describedby="visible-addon">
+</div>
+{{< /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.