app/helpers/coco/components_helper.rb in coveragebook_components-0.19.4 vs app/helpers/coco/components_helper.rb in coveragebook_components-0.19.5
- old
+ new
@@ -190,9 +190,15 @@
render(Coco::Modal.new(name: name, scroll_top: scroll_top, **)) do |modal|
modal.with_container_lightbox(&block)
end
end
+ def coco_modal_canvas(name = "default", **, &block)
+ render(Coco::Modal.new(name: name, **)) do |modal|
+ modal.with_container_canvas(&block)
+ end
+ end
+
# Navigation
def coco_link(*args, **, &block)
href, content = if block
[args.first, nil]