Sha256: c7f4a12ee46567e020b10959e4dbb5d049d85bddd4fe1a2aadc944b8bcb9d0c4

Contents?: true

Size: 708 Bytes

Versions: 5

Compression:

Stored size: 708 Bytes

Contents

<% if render_as_modal? %>
  <%= turbo_frame_tag coco_modal_frame_id(name), class: "modal-frame" do %>
    <%= render component_tag(
      id: id,
      role: "dialog",
      aria: {modal: "true"},
      data: {turbo_temporary: true},
      x: {
        data: x_data("modal"),
        bind: "root",
        cloak: true,
      },
    ) do %>
      <div class="modal-overlay" x-show="open" x-transition.opacity></div>
      <div class="modal-container" x-show="open" x-transition>
        <div class="modal-content" x-trap.noscroll.inert.noreturn="open">
          <%= modal_content %>
        </div>
      </div>
    <% end %>
    <%= render_flash_messages %>
  <% end %>
<% else %>
  <%= content %>
<% end %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
coveragebook_components-0.7.4 app/components/coco/base/modal/modal.html.erb
coveragebook_components-0.7.3 app/components/coco/base/modal/modal.html.erb
coveragebook_components-0.7.2 app/components/coco/base/modal/modal.html.erb
coveragebook_components-0.7.1 app/components/coco/base/modal/modal.html.erb
coveragebook_components-0.7.0 app/components/coco/base/modal/modal.html.erb