Sha256: 67f19867be04151eb79e234a6e09f14b7a5abd92b8608152b4c12658c9feb77b

Contents?: true

Size: 1.08 KB

Versions: 2

Compression:

Stored size: 1.08 KB

Contents

<details
  data-controller="<%= stimulus_id %>"
  <%= tag.attributes(**@attributes) %>
>
  <summary
    type="button"
    class="
      block
      w-[1rem]
      h-[1rem]
      cursor-pointer
      [&::marker]:hidden
      [&::-webkit-details-marker]:hidden
    "
    data-<%= stimulus_id %>-target="button"
    data-action="
      click:prevent-><%= stimulus_id %>#toggle
      keydown.esc@window-><%= stimulus_id %>#close
    "
    aria-label="<%= t('.get_help') %>"
  >
    <%= icon_tag("question-fill", class: "w-[1rem] h-[1rem] #{icon_theme_classes}") %>
  </summary>

  <div
    class="
      absolute
      inline-block
      w-[9rem]
      px-[0.75rem]
      body-tiny-bold
      rounded
      z-10
      <%= bubble_position_classes %>
      <%= bubble_theme_classes %>
    "
    data-<%= stimulus_id %>-target="bubble"
  >
    <span
      role="status"
      class="
        relative
        block
        bg-inherit
        py-[0.5rem]
        <%= bubble_arrow_pseudo_element %>
      "
      data-<%= stimulus_id %>-target="content"
    >
      <%= @text %>
    </span>
  </div>
</details>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
solidus_admin-0.0.2 app/components/solidus_admin/ui/toggletip/component.html.erb
solidus_admin-0.0.1 app/components/solidus_admin/ui/toggletip/component.html.erb