app/helpers/coco/components_helper.rb in coveragebook_components-0.17.2 vs app/helpers/coco/components_helper.rb in coveragebook_components-0.17.3
- old
+ new
@@ -166,12 +166,12 @@
def coco_modal(name = "default", **, &)
render(Coco::Modal.new(name: name, **), &)
end
- def coco_modal_dialog(name = "default", **, &block)
+ def coco_modal_dialog(name = "default", size: :md, **, &block)
render(Coco::Modal.new(name: name, **)) do |modal|
- modal.with_container_dialog(&block)
+ modal.with_container_dialog(size: size, &block)
end
end
def coco_modal_lightbox(name = "default", scroll_top: nil, **, &block)
render(Coco::Modal.new(name: name, scroll_top: scroll_top, **)) do |modal|