Skip to content

Conversation

@lcreid
Copy link
Contributor

@lcreid lcreid commented Nov 22, 2025

This PR makes inline: true generate the same CSS for the collection label as layout: :inline. This applies to collection_checkboxes and collection_radio_buttons. See the changes in the test cases of this PR for details, and compare to the layout: :inline test cases (example) in test/bootstrap_form_test.rb.

While this is a breaking change in some senses (it changes the generated marktup), I would classify it more as a bug fix. The previous mark-up would not have give the expected layout. So either the programmer worked around it some other way, or they didn't want inline: true in the first place, and can simply remove inline: true.

Closes: #777 .

@lcreid lcreid self-assigned this Nov 22, 2025
@lcreid lcreid merged commit 273db0c into bootstrap-ruby:main Nov 24, 2025
18 checks passed
@lcreid lcreid deleted the 777-inline-true-for-collections branch November 24, 2025 22:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

inline: true on collection_ Methods Doesn't Generate the Right CSS

1 participant