Rails Bootstrap Forms v4.0.0 Release Notes
Release Date: 2018-10-27 // over 5 years ago-
๐ฑ ๐จ This release adds support for Bootstrap v4 and drops support for Bootstrap v3. ๐จ
If your app uses Bootstrap v3, you should continue using bootstrap_form 2.7.x instead.
๐ Bootstrap v3 and v4 are very different, and thus bootstrap_form now produces different markup in order to target v4. The changes are too many to list here; you can refer to Bootstrap's Migrating to v4 page for a detailed explanation.
๐ In addition to these necessary markup changes, the bootstrap_form API itself has the following important changes in this release.
๐ฅ Breaking changes
- ๐ See Migrating to v4.
๐ New features
- ๐ [#476] Give a way to pass classes to the
div.form-check
wrapper for check boxes and radio buttons - @lcreid. - 0๏ธโฃ 461: default form-inline class applied to parent content div on date select helpers. Can override with a :skip_inline option on the field helper - @lancecarlson.
- The
button
,submit
, andprimary
helpers can now receive an additional option,extra_class
. This option allows us to specify additional CSS classes to be added to the corresponding button/input, while maintaining the original default ones. E.g., a primary button with anextra_class
'test-button' will have its final CSS classes declaration as 'btn btn-primary test-button'.
๐ Bugfixes