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
openproject-primer_view_components-0.29.1 app/components/primer/alpha/dialog/header.html.erb
openproject-primer_view_components-0.29.0 app/components/primer/alpha/dialog/header.html.erb
primer_view_components-0.23.0 app/components/primer/alpha/dialog/header.html.erb
openproject-primer_view_components-0.28.1 app/components/primer/alpha/dialog/header.html.erb
openproject-primer_view_components-0.28.0 app/components/primer/alpha/dialog/header.html.erb
openproject-primer_view_components-0.27.0 app/components/primer/alpha/dialog/header.html.erb
openproject-primer_view_components-0.26.0 app/components/primer/alpha/dialog/header.html.erb
openproject-primer_view_components-0.25.1 app/components/primer/alpha/dialog/header.html.erb
primer_view_components-0.22.0 app/components/primer/alpha/dialog/header.html.erb
primer_view_components-0.21.1 app/components/primer/alpha/dialog/header.html.erb
openproject-primer_view_components-0.25.0 app/components/primer/alpha/dialog/header.html.erb
openproject-primer_view_components-0.24.0 app/components/primer/alpha/dialog/header.html.erb
primer_view_components-0.21.0 app/components/primer/alpha/dialog/header.html.erb
primer_view_components-0.20.1 app/components/primer/alpha/dialog/header.html.erb
primer_view_components-0.20.0 app/components/primer/alpha/dialog/header.html.erb
openproject-primer_view_components-0.23.0 app/components/primer/alpha/dialog/header.html.erb
primer_view_components-0.19.0 app/components/primer/alpha/dialog/header.html.erb
openproject-primer_view_components-0.22.2 app/components/primer/alpha/dialog/header.html.erb
primer_view_components-0.18.2 app/components/primer/alpha/dialog/header.html.erb
openproject-primer_view_components-0.22.1 app/components/primer/alpha/dialog/header.html.erb