Sha256: 51bba0a2eb65d2555734f775653ab70966998a7c5d8991d0951bf99e810636ff

Contents?: true

Size: 1.1 KB

Versions: 86

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

86 entries across 86 versions & 2 rubygems

Version Path
primer_view_components-0.35.2 app/components/primer/alpha/action_menu.html.erb
openproject-primer_view_components-0.49.1 app/components/primer/alpha/action_menu.html.erb
openproject-primer_view_components-0.49.0 app/components/primer/alpha/action_menu.html.erb
primer_view_components-0.35.1 app/components/primer/alpha/action_menu.html.erb
primer_view_components-0.35.0 app/components/primer/alpha/action_menu.html.erb
openproject-primer_view_components-0.48.2 app/components/primer/alpha/action_menu.html.erb
openproject-primer_view_components-0.48.1 app/components/primer/alpha/action_menu.html.erb
openproject-primer_view_components-0.48.0 app/components/primer/alpha/action_menu.html.erb
openproject-primer_view_components-0.47.1 app/components/primer/alpha/action_menu.html.erb
openproject-primer_view_components-0.47.0 app/components/primer/alpha/action_menu.html.erb
primer_view_components-0.34.0 app/components/primer/alpha/action_menu.html.erb
openproject-primer_view_components-0.46.1 app/components/primer/alpha/action_menu.html.erb
openproject-primer_view_components-0.46.0 app/components/primer/alpha/action_menu.html.erb
openproject-primer_view_components-0.45.0 app/components/primer/alpha/action_menu.html.erb
openproject-primer_view_components-0.44.3 app/components/primer/alpha/action_menu.html.erb
openproject-primer_view_components-0.44.2 app/components/primer/alpha/action_menu.html.erb
openproject-primer_view_components-0.44.1 app/components/primer/alpha/action_menu.html.erb
primer_view_components-0.33.0 app/components/primer/alpha/action_menu.html.erb
openproject-primer_view_components-0.44.0 app/components/primer/alpha/action_menu.html.erb
openproject-primer_view_components-0.43.1 app/components/primer/alpha/action_menu.html.erb