Sha256: 93c3b3e6275097c9368466bbb4cfbeeabc35950b8e8689bd543e55183d914d85

Contents?: true

Size: 684 Bytes

Versions: 71

Compression:

Stored size: 684 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>
      <% end %>
    </div>
    <div class="Overlay-actionWrap">
      <%= render Primer::Beta::CloseButton.new(classes: "Overlay-closeButton", "data-close-dialog-id": @id) %>
    </div>
  </div>
<% end %>

Version data entries

71 entries across 71 versions & 2 rubygems

Version Path
primer_view_components-0.13.1 app/components/primer/alpha/dialog/header.html.erb
openproject-primer_view_components-0.13.0 app/components/primer/alpha/dialog/header.html.erb
primer_view_components-0.13.0 app/components/primer/alpha/dialog/header.html.erb
primer_view_components-0.12.0 app/components/primer/alpha/dialog/header.html.erb
primer_view_components-0.11.0 app/components/primer/alpha/dialog/header.html.erb
openproject-primer_view_components-0.12.1 app/components/primer/alpha/dialog/header.html.erb
primer_view_components-0.10.0 app/components/primer/alpha/dialog/header.html.erb
openproject-primer_view_components-0.11.0 app/components/primer/alpha/dialog/header.html.erb
openproject-primer_view_components-0.10.0 app/components/primer/alpha/dialog/header.html.erb
primer_view_components-0.9.0 app/components/primer/alpha/dialog/header.html.erb
openproject-primer_view_components-0.9.1 app/components/primer/alpha/dialog/header.html.erb
openproject-primer_view_components-0.9.0 app/components/primer/alpha/dialog/header.html.erb
openproject-primer_view_components-0.8.0 app/components/primer/alpha/dialog/header.html.erb
primer_view_components-0.8.0 app/components/primer/alpha/dialog/header.html.erb
primer_view_components-0.7.0 app/components/primer/alpha/dialog/header.html.erb
openproject-primer_view_components-0.7.0 app/components/primer/alpha/dialog/header.html.erb
openproject-primer_view_components-0.6.3 app/components/primer/alpha/dialog/header.html.erb
primer_view_components-0.6.0 app/components/primer/alpha/dialog/header.html.erb
primer_view_components-0.5.1 app/components/primer/alpha/dialog/header.html.erb
primer_view_components-0.5.0 app/components/primer/alpha/dialog/header.html.erb