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.43.1 app/components/primer/alpha/action_menu.html.erb
openproject-primer_view_components-0.43.0 app/components/primer/alpha/action_menu.html.erb
primer_view_components-0.32.0 app/components/primer/alpha/action_menu.html.erb
openproject-primer_view_components-0.42.0 app/components/primer/alpha/action_menu.html.erb
primer_view_components-0.31.0 app/components/primer/alpha/action_menu.html.erb
openproject-primer_view_components-0.41.1 app/components/primer/alpha/action_menu.html.erb
openproject-primer_view_components-0.41.0 app/components/primer/alpha/action_menu.html.erb
openproject-primer_view_components-0.40.0 app/components/primer/alpha/action_menu.html.erb
primer_view_components-0.30.0 app/components/primer/alpha/action_menu.html.erb
openproject-primer_view_components-0.39.1 app/components/primer/alpha/action_menu.html.erb
openproject-primer_view_components-0.39.0 app/components/primer/alpha/action_menu.html.erb
openproject-primer_view_components-0.38.0 app/components/primer/alpha/action_menu.html.erb
primer_view_components-0.29.0 app/components/primer/alpha/action_menu.html.erb
primer_view_components-0.28.0 app/components/primer/alpha/action_menu.html.erb
openproject-primer_view_components-0.37.1 app/components/primer/alpha/action_menu.html.erb
openproject-primer_view_components-0.37.0 app/components/primer/alpha/action_menu.html.erb
openproject-primer_view_components-0.36.2 app/components/primer/alpha/action_menu.html.erb
openproject-primer_view_components-0.36.1 app/components/primer/alpha/action_menu.html.erb
openproject-primer_view_components-0.36.0 app/components/primer/alpha/action_menu.html.erb
primer_view_components-0.27.0 app/components/primer/alpha/action_menu.html.erb