Sha256: e90826553327074f3da11137ff64f82fbe13a4af2d452446f5faefebdbba2255

Contents?: true

Size: 711 Bytes

Versions: 57

Compression:

Stored size: 711 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>
      <% end %>
    </div>
    <% if @overlay_id %>
      <div class="Overlay-actionWrap">
        <%= render Primer::Beta::CloseButton.new(classes: "Overlay-closeButton", "popovertarget": @overlay_id, "popovertargetaction": "hide") %>
      </div>
    <% end %>
  </div>
<% end %>

Version data entries

57 entries across 57 versions & 2 rubygems

Version Path
openproject-primer_view_components-0.25.1 app/components/primer/alpha/overlay/header.html.erb
primer_view_components-0.21.1 app/components/primer/alpha/overlay/header.html.erb
openproject-primer_view_components-0.25.0 app/components/primer/alpha/overlay/header.html.erb
openproject-primer_view_components-0.24.0 app/components/primer/alpha/overlay/header.html.erb
primer_view_components-0.21.0 app/components/primer/alpha/overlay/header.html.erb
primer_view_components-0.20.1 app/components/primer/alpha/overlay/header.html.erb
primer_view_components-0.20.0 app/components/primer/alpha/overlay/header.html.erb
openproject-primer_view_components-0.23.0 app/components/primer/alpha/overlay/header.html.erb
primer_view_components-0.19.0 app/components/primer/alpha/overlay/header.html.erb
openproject-primer_view_components-0.22.2 app/components/primer/alpha/overlay/header.html.erb
primer_view_components-0.18.2 app/components/primer/alpha/overlay/header.html.erb
openproject-primer_view_components-0.22.1 app/components/primer/alpha/overlay/header.html.erb
primer_view_components-0.18.1 app/components/primer/alpha/overlay/header.html.erb
openproject-primer_view_components-0.22.0 app/components/primer/alpha/overlay/header.html.erb
primer_view_components-0.18.0 app/components/primer/alpha/overlay/header.html.erb
openproject-primer_view_components-0.21.0 app/components/primer/alpha/overlay/header.html.erb
primer_view_components-0.17.0 app/components/primer/alpha/overlay/header.html.erb
openproject-primer_view_components-0.20.0 app/components/primer/alpha/overlay/header.html.erb
primer_view_components-0.16.1 app/components/primer/alpha/overlay/header.html.erb
primer_view_components-0.16.0 app/components/primer/alpha/overlay/header.html.erb