1
0
Fork 0
mirror of https://github.com/heartcombo/simple_form.git synced 2022-11-09 12:19:26 -05:00

refinements for bootstrap v4.3.1

* minor refinements bootstrap `v4.3.1` with floating labels

🔗 https://github.com/rafaelfranca/simple_form-bootstrap/pull/103
This commit is contained in:
m5o 2019-02-14 12:53:32 +01:00
parent 543d7af7ae
commit 87e72845e2
2 changed files with 2 additions and 2 deletions

View file

@ -4,7 +4,7 @@
* Set multiple attribute for grouped selects also. [@ollym](https://github.com/ollym) * Set multiple attribute for grouped selects also. [@ollym](https://github.com/ollym)
* Removes or renames label classes. [Abduvakilov](https://github.com/Abduvakilov) * Removes or renames label classes. [Abduvakilov](https://github.com/Abduvakilov)
* Support to label custom classes for inline collections. [@feliperenan](https://github.com/feliperenan) * Support to label custom classes for inline collections. [@feliperenan](https://github.com/feliperenan)
* Update bootstrap generator template to match v4.1.3. [@m5o](https://github.com/m5o) * Update bootstrap generator template to match v4.3.x. [@m5o](https://github.com/m5o)
## 4.1.0 ## 4.1.0

View file

@ -403,7 +403,7 @@ SimpleForm.setup do |config|
config.wrappers :floating_labels_select, tag: 'div', class: 'form-label-group', error_class: 'form-group-invalid', valid_class: 'form-group-valid' do |b| config.wrappers :floating_labels_select, tag: 'div', class: 'form-label-group', error_class: 'form-group-invalid', valid_class: 'form-group-valid' do |b|
b.use :html5 b.use :html5
b.optional :readonly b.optional :readonly
b.use :input, class: 'custom-select custom-select-lg', error_class: 'is-invalid', valid_class: 'is-valid' b.use :input, class: 'custom-select', error_class: 'is-invalid', valid_class: 'is-valid'
b.use :label b.use :label
b.use :full_error, wrap_with: { tag: 'div', class: 'invalid-feedback' } b.use :full_error, wrap_with: { tag: 'div', class: 'invalid-feedback' }
b.use :hint, wrap_with: { tag: 'small', class: 'form-text text-muted' } b.use :hint, wrap_with: { tag: 'small', class: 'form-text text-muted' }