app/components/coco/messaging/alert/alert.rb in coveragebook_components-0.17.2 vs app/components/coco/messaging/alert/alert.rb in coveragebook_components-0.17.3

- old
+ new

@@ -33,9 +33,14 @@ before_render do unless tag_attr?(:id) set_tag_attr(:id, "alert-#{rand(1000)}") end + with_title { @title } unless title? + end + + def initialize(title: nil, **kwargs) + @title = title end def dismissable? get_option_value(:dismissable) end