0
Fork 0
mirror of https://github.com/twbs/bootstrap.git synced 2026-11-18 07:04:22 +00:00
bootstrap/scss/tests/forms
Mark Otto 5948f67525
v6: New form fields component, updated validation, remove validation icons, and more (#42308)
* Wip

* more updates

* Revamp validation SCSS to use theme-derived CSS custom properties

Replace the verbose $form-validation-states map with a flat
$validation-states map (state -> theme color name). The mixin now
derives all styling from theme tokens (--{theme}-fg, --{theme}-border,
etc.) and uses component token overrides (e.g., --control-border-color)
instead of direct property declarations.

- Extract form-validation-state-selector mixin to scss/mixins/
- Remove all Sass validation color/icon variables
- Remove --form-valid-*/--form-invalid-* root tokens
- Remove $enable-validation-icons and all icon logic
- Refactor _otp-input.scss to use shared mixin
- Update docs references

Made-with: Cursor

* big update

* cleanup

* update migration guide

* fix linter

* Fix bundlewatch

* mdx lint

* fix dupe ids

* consolidate vars, fix docs

* centralize validation for otp
History 2026-04-14 17:02:55 -05:00
..
_validation.test.scss v6: New form fields component, updated validation, remove validation icons, and more (#42308) 2026-04-14 17:02:55 -05:00