Sha256: 5b491b561be2257db97d531ccd54f0df36a432856b207058ef838fd4260b18f5

Contents?: true

Size: 1.06 KB

Versions: 9

Compression:

Stored size: 1.06 KB

Contents

<%= render(Primer::BaseComponent.new(**@wrapper_arguments)) do %>
  <%= render(Primer::BaseComponent.new(**@system_arguments)) do %>
    <% if @icon %>
      <div class="Banner-visual">
        <%= render(Primer::Beta::Octicon.new(icon: @icon)) %>
      </div>
    <% end %>
    <%= render(Primer::BaseComponent.new(**@message_arguments)) do %>
      <p class="Banner-title" data-target="<%= catalyst_target(field: "titleText") %>"><%= content %></p>
      <% if @description %>
        <p><%= @description %></p>
      <% end %>
    <% end %>
    <% if action %>
      <div class="flash-action Banner-actions">
        <%= action %>
      </div>
    <% end %>
    <% if @dismiss_scheme != :none %>
      <div class="flash-close Banner-close">
        <%= render(
          Primer::Beta::IconButton.new(
            scheme: :invisible,
            icon: :x,
            aria: { label: @dismiss_label },
            data: { action: catalyst_action(event: "click", function: "dismiss") },
            autofocus: true
          )
        ) %>
      </div>
    <% end %>
  <% end %>
<% end %>

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
openproject-primer_view_components-0.22.1 app/components/primer/alpha/banner.html.erb
primer_view_components-0.18.1 app/components/primer/alpha/banner.html.erb
openproject-primer_view_components-0.22.0 app/components/primer/alpha/banner.html.erb
primer_view_components-0.18.0 app/components/primer/alpha/banner.html.erb
openproject-primer_view_components-0.21.0 app/components/primer/alpha/banner.html.erb
primer_view_components-0.17.0 app/components/primer/alpha/banner.html.erb
openproject-primer_view_components-0.20.0 app/components/primer/alpha/banner.html.erb
primer_view_components-0.16.1 app/components/primer/alpha/banner.html.erb
primer_view_components-0.16.0 app/components/primer/alpha/banner.html.erb