Sha256: 26f93514fb2b420b6644c7eb0c7aa9f3dcb3a90650c3bbf40e4f4f7af374ebc3

Contents?: true

Size: 741 Bytes

Versions: 64

Compression:

Stored size: 741 Bytes

Contents

<%= render Primer::BaseComponent.new(**@system_arguments) do %>
  <div class="Overlay-headerContentWrap">
    <div class="Overlay-titleWrap">
      <h1 class="Overlay-title <% if @visually_hide_title || content.present? %>sr-only<% end %>" id="<%= @id %>-title">
        <%= @title %>
      </h1>
      <% if content.present? %>
        <%= content %>
      <% elsif @subtitle.present? %>
        <h2 id="<%= @id %>-description" class="Overlay-description"><%= @subtitle %></h2>
      <% else %>
        <%= subtitle %>
      <% end %>
    </div>
    <div class="Overlay-actionWrap">
      <%= render Primer::Beta::CloseButton.new(classes: "Overlay-closeButton", "data-close-dialog-id": @id) %>
    </div>
  </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/dialog/header.html.erb
primer_view_components-0.25.1 app/components/primer/alpha/dialog/header.html.erb
openproject-primer_view_components-0.32.1 app/components/primer/alpha/dialog/header.html.erb
openproject-primer_view_components-0.32.0 app/components/primer/alpha/dialog/header.html.erb