Sha256: b56995d131169a639df31e6d7036352c63be8dc777dad9fa4d7359ecbfc0d926

Contents?: true

Size: 727 Bytes

Versions: 8

Compression:

Stored size: 727 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>
  <%= filter %>
<% end %>

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
openproject-primer_view_components-0.29.1 app/components/primer/alpha/overlay/header.html.erb
openproject-primer_view_components-0.29.0 app/components/primer/alpha/overlay/header.html.erb
primer_view_components-0.23.0 app/components/primer/alpha/overlay/header.html.erb
openproject-primer_view_components-0.28.1 app/components/primer/alpha/overlay/header.html.erb
openproject-primer_view_components-0.28.0 app/components/primer/alpha/overlay/header.html.erb
openproject-primer_view_components-0.27.0 app/components/primer/alpha/overlay/header.html.erb
openproject-primer_view_components-0.26.0 app/components/primer/alpha/overlay/header.html.erb
primer_view_components-0.22.0 app/components/primer/alpha/overlay/header.html.erb