|
6 | 6 |
|
7 | 7 | ### New features
|
8 | 8 |
|
| 9 | +* Your contribution here! |
| 10 | + |
| 11 | +### Bugfixes |
| 12 | + |
| 13 | +* Your contribution here! |
| 14 | + |
| 15 | +## [4.0.0][] (2018-10-27) |
| 16 | + |
| 17 | +🚨 **This release adds support for Bootstrap v4 and drops support for Bootstrap v3.** 🚨 |
| 18 | + |
| 19 | +If your app uses Bootstrap v3, you should continue using bootstrap_form 2.7.x instead. |
| 20 | + |
| 21 | +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](https://getbootstrap.com/docs/4.0/migration/) page for a detailed explanation. |
| 22 | + |
| 23 | +In addition to these necessary markup changes, the bootstrap_form API itself has the following important changes in this release. |
| 24 | + |
| 25 | +### Breaking changes |
| 26 | + |
| 27 | +* See [Migrating to v4](https://getbootstrap.com/docs/4.0/migration/). |
| 28 | + |
| 29 | +### New features |
| 30 | + |
9 | 31 | * [#476] Give a way to pass classes to the `div.form-check` wrapper for check boxes and radio buttons - [@lcreid](https://github.com/lcreid).
|
10 | 32 | * [461](https://github.com/bootstrap-ruby/bootstrap_form/pull/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](https://github.com/lancecarlson).
|
11 |
| -* Your contribution here! |
12 | 33 | * The `button`, `submit`, and `primary` 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 an `extra_class` 'test-button' will have its final CSS classes declaration as 'btn btn-primary test-button'.
|
13 | 34 |
|
14 | 35 | ### Bugfixes
|
15 | 36 |
|
16 |
| -* Your contribution here! |
17 | 37 | * [#347](https://github.com/bootstrap-ruby/bootstrap_form/issues/347) Fix `wrapper_class` and `wrapper` options for helpers that have `html_options`.
|
18 | 38 | * [#472](https://github.com/bootstrap-ruby/bootstrap_form/pull/472) Use `id` option value as `for` attribute of label for custom checkboxes and radio buttons.
|
19 | 39 | * [#478](https://github.com/bootstrap-ruby/bootstrap_form/issues/478) Fix offset for form group without label when multiple label widths are specified.
|
@@ -223,7 +243,8 @@ Features:
|
223 | 243 | - Added support for bootstrap_form_tag (@baldwindavid)
|
224 | 244 |
|
225 | 245 |
|
226 |
| -[Pending Release]: https://github.com/bootstrap-ruby/bootstrap_form/compare/v4.0.0.alpha1...HEAD |
| 246 | +[Pending Release]: https://github.com/bootstrap-ruby/bootstrap_form/compare/v4.0.0...HEAD |
| 247 | +[4.0.0]: https://github.com/bootstrap-ruby/bootstrap_form/compare/v4.0.0.alpha1...v4.0.0 |
227 | 248 | [4.0.0.alpha1]: https://github.com/bootstrap-ruby/bootstrap_form/compare/v2.7.0...v4.0.0.alpha1
|
228 | 249 | [2.7.0]: https://github.com/bootstrap-ruby/bootstrap_form/compare/v2.6.0...v2.7.0
|
229 | 250 | [2.6.0]: https://github.com/bootstrap-ruby/bootstrap_form/compare/v2.5.3...v2.6.0
|
|
0 commit comments