You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add classes to the div.form-check that wraps check boxes and radio buttons. (bootstrap-ruby#479)
* Rename div_class to make refactoring more obvious.
* Fix issue bootstrap-ruby#476 for check_boxes.
* Fix issue bootstrap-ruby#476 for radio buttons.
* Test for `:custom` option just once.
* Add wrapper_class for check boxes and radio buttons.
Copy file name to clipboardexpand all lines: CHANGELOG.md
+1
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,7 @@
6
6
7
7
### New features
8
8
9
+
*[#476] Give a way to pass classes to the `div.form-check` wrapper for check boxes and radio buttons - [@lcreid](https://github.com/lcreid).
9
10
*[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).
10
11
* Your contribution here!
11
12
* 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'.
<labelclass="custom-control-label" for="user_misc_1">This is a radio button</label>
527
+
</div>
528
+
HTML
529
+
assert_equivalent_xmlexpected,@builder.radio_button(:misc,'1',{label: 'This is a radio button',inline: true,custom: true,wrapper_class: "custom-class"})
0 commit comments