From: Christian Oliff Date: Fri, 26 Jun 2026 16:02:18 +0000 (+0900) Subject: docs: clarify form-adorn usage and input type (#42547) X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5d7ac0ddc5209d05e9c2f957c559b8054028f96b;p=thirdparty%2Fbootstrap.git docs: clarify form-adorn usage and input type (#42547) --- diff --git a/site/src/content/docs/forms/form-adorn.mdx b/site/src/content/docs/forms/form-adorn.mdx index 8b3bfc0b09..10b9ffd323 100644 --- a/site/src/content/docs/forms/form-adorn.mdx +++ b/site/src/content/docs/forms/form-adorn.mdx @@ -7,19 +7,19 @@ css_layer: forms ## How it works -The `.form-adorn` wrapper replicates `.form-control` styling (border, background, focus states) while using flexbox to position adornments alongside a "ghost input," a form control that has virtually no visual styling. The `.form-ghost` input inside is transparent and inherits styles from the wrapper. +Apply both `.form-control` and `.form-adorn` to a wrapper element. `.form-control` provides the border, background, padding, and focus states; `.form-adorn` uses flexbox to position adornments alongside a "ghost input," a form control that has virtually no visual styling. The `.form-ghost` input inside is transparent and inherits styles from the wrapper. See the [form control]([[docsref:/forms/form-control]]) documentation for more information on the `.form-control` and `.form-ghost` classes. ## Example -Wrap an icon and a `.form-ghost` input inside `.form-adorn`. Place the adornment before the input in the DOM for start position (left in LTR). +Wrap an icon and a `.form-ghost` input inside a `
` with `.form-control` and `.form-adorn`. Place the adornment before the input in the DOM for start position (left in LTR).
- +
`} /> Use `.form-adorn-end` to position the adornment on the trailing side (keeps DOM order, uses CSS to flip visually): @@ -41,7 +41,7 @@ Add a label outside the `.form-adorn` wrapper for proper form semantics:
- +
@@ -64,7 +64,7 @@ Wrap a `.form-adorn` in a `.form-field` to pair it with a label and description
- +
Search across all pages and posts. `} />