Sha256: 15c58b326b8faab28d40b96340b8f21e5575a43c89c886ee0b44d742333f7f7c

Contents?: true

Size: 914 Bytes

Versions: 5

Compression:

Stored size: 914 Bytes

Contents

<details
  <%= tag.attributes @attributes %>
>
  <summary
    class="
      text-black
      hover:fill-gray-500
      [[open]_&]:fill-gray-500
      cursor-pointer
      flex
      items-center
    "
    title="<%= @text || t(".more") %>"
    data-action="keydown.esc-><%= stimulus_id %>#close"
  >
    <% if @text %>
      <%= @text %>
      <%= icon_tag "arrow-down-s-fill", class: SIZES.fetch(@size) %>
    <% else %>
      <%= icon_tag "more-line", class: SIZES.fetch(@size) %>
    <% end %>
  </summary>

  <div
    class="
      absolute
      border
      border-gray-100
      mt-0.5
      flex
      flex-col
      min-w-[10rem]
      p-2
      rounded-sm
      shadow-lg
      bg-white
      z-10

      <%= DIRECTIONS.fetch(@direction) %>

      [&>*]:p-2
      [&>*]:rounded-sm
      [&>*:hover]:bg-gray-50
      [&>*]:text-black
      [&>*]:min-w-fit
    "
  >
    <%= content %>
  </div>
</details>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
solidus_admin-0.3.2 app/components/solidus_admin/ui/dropdown/component.html.erb
solidus_admin-0.3.1 app/components/solidus_admin/ui/dropdown/component.html.erb
solidus_admin-0.3.0 app/components/solidus_admin/ui/dropdown/component.html.erb
solidus_admin-0.2.0 app/components/solidus_admin/ui/dropdown/component.html.erb
solidus_admin-0.1.0 app/components/solidus_admin/ui/dropdown/component.html.erb