Skip to content

Commit 247c977

Browse files
authored
Merge pull request #4735 from coalest/minor-css-improvements
Minor css improvements
2 parents c23c8cd + e6651b9 commit 247c977

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// Source: http://simple-form-bootstrap.plataformatec.com.br/documentation
22

3-
abbr[title] {
3+
form abbr[title] {
44
text-decoration: none;
5-
}
5+
cursor: inherit;
6+
}

config/initializers/simple_form_bootstrap.rb

+4-3
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,10 @@
7777
config.wrappers :vertical_collection, item_wrapper_class: 'form-check', item_label_class: 'form-check-label', tag: 'fieldset', class: 'form-group', error_class: 'form-group-invalid', valid_class: 'form-group-valid' do |b|
7878
b.use :html5
7979
b.optional :readonly
80-
b.wrapper :legend_tag, tag: 'legend', class: 'col-form-label pt-0 font-weight-bold' do |ba|
80+
b.wrapper :legend_tag, tag: 'legend', class: 'col-form-label pt-0 font-weight-bold float-none' do |ba|
8181
ba.use :label_text
8282
end
83-
b.use :input, class: 'form-check-input', error_class: 'is-invalid', valid_class: 'is-valid'
83+
b.use :input, class: 'form-check-input', error_class: 'is-invalid'
8484
b.use :full_error, wrap_with: { tag: 'div', class: 'invalid-feedback d-block' }
8585
b.use :hint, wrap_with: { tag: 'small', class: 'form-text text-muted' }
8686
end
@@ -435,4 +435,5 @@
435435
# range: :custom_range,
436436
# time: :custom_multi_select
437437
# }
438-
end
438+
end
439+

0 commit comments

Comments
 (0)