]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
More migration docs
authorMark Otto <markdotto@gmail.com>
Wed, 24 Sep 2025 05:15:11 +0000 (22:15 -0700)
committerMark Otto <markdotto@gmail.com>
Wed, 24 Sep 2025 06:20:58 +0000 (23:20 -0700)
site/src/content/docs/forms/form-control.mdx
site/src/content/docs/migration.mdx

index df3f1d3e6ef305245c994e923b55ea132d08762e..11ff8fab2799fc1b252f5a29a3b5f75a85ef826d 100644 (file)
@@ -1,6 +1,6 @@
 ---
 title: Form controls
-description: Give textual `<input>`s, `<textarea>`s, and `<select>`s an upgrade with custom styles, sizing, focus states, and more.
+description: Give textual `<input>`, `<textarea>`, and `<select>` elements an upgrade with custom styles, sizing, focus states, and more.
 toc: true
 ---
 
index 9e80d14520b9454c61f025c71b7d1334a65faeec..b7f9729ca24d8f5da04292667f253c7896c66308 100644 (file)
@@ -5,7 +5,7 @@ aliases: "/migration/"
 toc: true
 ---
 
-## v6.0.0
+## v6.0.0 Changelog
 
 ### CSS
 
@@ -44,6 +44,21 @@ toc: true
 
 - Relocated heading classes (like `.h1`) and some type classes (`.mark` and `.small`) to Reboot from `_type.scss`. This avoids a dependency in Sass modules and we like to avoid extending selectors in general.
 
+### Forms
+
+- **Refactor checks, radios, and switches.**
+  - Split apart `_form-check.scss` into separate stylesheets: `_checkbox.scss`, `_radio.scss`, and `_switch.scss`.
+  - Also split apart the documentation pages for checks, radios, and switches.
+  - Added new CSS variables on each of these components. _Side note: we could've shared variables here, but chose not to for simplicity's sake._
+  - Removed several now unused Sass variables.
+  - Checkboxes now have a wrapping element and an SVG in the DOM for checked and indeterminate states. Radios and switches do not.
+  - Revamped layout for checks, radios, and switches with labels (and descriptions). We now have custom elements for layout that include basic flexbox styling.
+  - @mdo-do: Decide on fate of `.form-check-reverse`.
+- **Consolidate `.form-select` into `.form-control`.**
+  - Removed `.form-select`—use `.form-control` on `<select>` elements now. Too much abstraction and duplication at the same time.
+  - Adds new CSS variables on `.form-control` for easier customization without Sass compilation.
+  - `.form-control` now has a `min-height` at all times as opposed to just on `<textarea>` elements. This reduces some CSS for us.
+
 ### Helpers
 
 - Ratio helpers have been moved to utilities.