bootstrap-ruby / bootstrap_form

Official repository of the bootstrap_form gem, a Rails form builder that makes it super easy to create beautiful-looking forms using Bootstrap 5.
MIT License
1.64k stars 352 forks source link

Allow overriding the wrapper class #618

Closed donv closed 2 years ago

donv commented 2 years ago

The wrapper now has a mb-3 class by default which is correct by the Bootstrap 5 migration guide and documentation. 👍

However, when you want to remove the bottom margin like some of the tests do, there should be a way to omit the mb-3 class. I think wrapper_class: false should do this, so I'll add it to this PR.

Then, when you add classes, you should be able to add them to a clean slate. That means that you need to include the mb-3 class if you want it.

What do you think?