Sha256: 2e1876806aca88b2e40c4423ea334c30f2d9ed30b44f173817d9be25a0797381

Contents?: true

Size: 483 Bytes

Versions: 6

Compression:

Stored size: 483 Bytes

Contents

<%= render(Primer::Alpha::Overlay.new(
         title: "Menu",
         role: :dialog,
)) do |d| %>
  <% d.with_show_button do |b| %>
    Open Overlay
    <% b.with_tooltip(text: "Opens an overlay") %>
  <% end %>
  <% d.with_header do %>
    An overlay
  <% end %>
  <% d.with_body do %>

    <%= render(Primer::Beta::Button.new(id: "overlay-button")) do |b| %>
      <% b.with_tooltip(text: "This is a tooltip in an Overlay") %>
      A button
    <% end %>

  <% end %>
<% end %>

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
openproject-primer_view_components-0.49.2 previews/primer/alpha/tooltip_preview/tooltip_inside_primer_overlay.html.erb
primer_view_components-0.35.2 previews/primer/alpha/tooltip_preview/tooltip_inside_primer_overlay.html.erb
openproject-primer_view_components-0.49.1 previews/primer/alpha/tooltip_preview/tooltip_inside_primer_overlay.html.erb
openproject-primer_view_components-0.49.0 previews/primer/alpha/tooltip_preview/tooltip_inside_primer_overlay.html.erb
primer_view_components-0.35.1 previews/primer/alpha/tooltip_preview/tooltip_inside_primer_overlay.html.erb
primer_view_components-0.35.0 previews/primer/alpha/tooltip_preview/tooltip_inside_primer_overlay.html.erb