Sha256: 51bba0a2eb65d2555734f775653ab70966998a7c5d8991d0951bf99e810636ff

Contents?: true

Size: 1.1 KB

Versions: 87

Compression:

Stored size: 1.1 KB

Contents

<%= render Primer::BaseComponent.new(**@system_arguments) do %>
  <focus-group direction="vertical" mnemonics retain>
    <%= render(@overlay) do |overlay| %>
      <% overlay.with_body(padding: :none) do %>
        <% if @src.present? %>
          <include-fragment src="<%= @src %>" loading="<%= preload? ? "eager" : "lazy" %>" data-target="action-menu.includeFragment">
            <%= render(Primer::Alpha::ActionMenu::List.new(id: "#{@menu_id}-list", menu_id: @menu_id)) do |list| %>
              <% list.with_item(
                aria: { disabled: true },
                content_arguments: {
                  display: :flex,
                  align_items: :center,
                  justify_content: :center,
                  text_align: :center,
                  autofocus: true
                }
              ) do %>
                <%= render Primer::Beta::Spinner.new(aria: { label: "Loading content..." }) %>
              <% end %>
            <% end %>
          </include-fragment>
        <% else %>
          <%= render(@list) %>
        <% end %>
      <% end %>
    <% end %>
  </focus-group>
<% end %>

Version data entries

87 entries across 87 versions & 2 rubygems

Version Path
openproject-primer_view_components-0.19.0 app/components/primer/alpha/action_menu.html.erb
primer_view_components-0.15.1 app/components/primer/alpha/action_menu.html.erb
primer_view_components-0.15.0 app/components/primer/alpha/action_menu.html.erb
openproject-primer_view_components-0.18.1 app/components/primer/alpha/action_menu.html.erb
openproject-primer_view_components-0.17.1 app/components/primer/alpha/action_menu.html.erb
openproject-primer_view_components-0.17.0 app/components/primer/alpha/action_menu.html.erb
primer_view_components-0.14.0 app/components/primer/alpha/action_menu.html.erb