lib/trestle/form/fields/form_group.rb in trestle-0.9.8 vs lib/trestle/form/fields/form_group.rb in trestle-0.10.0.pre
- old
+ new
@@ -40,10 +40,10 @@
}, "\n")
end
end
def label
- builder.label(name, options[:label], class: ["control-label", ("sr-only" if options[:hide_label])].compact)
+ builder.label(name, options[:label], class: ["form-label", ("visually-hidden" if options[:hide_label])].compact)
end
def defaults
Trestle::Options.new(class: ["form-group"])
end