Sha256: 7a604499caac3495e641b53d9b6be9d9bc1b128b2cc1616f3b0511fe9996e705

Contents?: true

Size: 805 Bytes

Versions: 64

Compression:

Stored size: 805 Bytes

Contents

<%= render Primer::BaseComponent.new(**@system_arguments) do %>
  <div class="Overlay-headerContentWrap">
    <div class="Overlay-titleWrap">
      <h1 id="<%= @id %>" class="Overlay-title <% if @visually_hide_title || content.present? %>sr-only<% end %>"><%= @title %></h1>
      <% if content.present? %>
        <%= content %>
      <% elsif @subtitle.present? %>
        <h2 class="Overlay-description"><%= @subtitle %></h2>
      <% else %>
        <%= subtitle %>
      <% end %>
    </div>
    <% if @overlay_id %>
      <div class="Overlay-actionWrap">
        <%= render Primer::Beta::CloseButton.new(classes: "Overlay-closeButton", "popovertarget": @overlay_id, "popovertargetaction": "hide", "data-close-dialog-id": @overlay_id) %>
      </div>
    <% end %>
  </div>
  <%= filter %>
<% end %>

Version data entries

64 entries across 64 versions & 2 rubygems

Version Path
openproject-primer_view_components-0.33.0 app/components/primer/alpha/overlay/header.html.erb
primer_view_components-0.25.1 app/components/primer/alpha/overlay/header.html.erb
openproject-primer_view_components-0.32.1 app/components/primer/alpha/overlay/header.html.erb
openproject-primer_view_components-0.32.0 app/components/primer/alpha/overlay/header.html.erb