Previews

No matching results.

x
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<button id="overlay-show-overlay-7a7305f7-dd87-4acf-a2c8-801fa4888090" popovertarget="overlay-7a7305f7-dd87-4acf-a2c8-801fa4888090" aria-haspopup="true" type="button" data-view-component="true" class="Button--secondary Button--medium Button"> <span class="Button-content">
<span class="Button-label">Open Overlay</span>
</span>
</button><tool-tip id="tooltip-c6421e7e-7527-43fb-b24b-0091c335947d" for="overlay-show-overlay-7a7305f7-dd87-4acf-a2c8-801fa4888090" popover="manual" data-direction="s" data-type="description" data-view-component="true" class="sr-only position-absolute">Opens an overlay</tool-tip>
<anchored-position role="dialog" id="overlay-7a7305f7-dd87-4acf-a2c8-801fa4888090" anchor="overlay-show-overlay-7a7305f7-dd87-4acf-a2c8-801fa4888090" align="start" side="outside-bottom" anchor-offset="normal" popover="auto" aria-labelledby="overlay-title-overlay-7a7305f7-dd87-4acf-a2c8-801fa4888090" data-view-component="true">
<div data-view-component="true" class="Overlay Overlay--size-auto">
<header data-view-component="true" class="Overlay-header">
<div class="Overlay-headerContentWrap">
<div class="Overlay-titleWrap">
<h1 id="overlay-title-overlay-7a7305f7-dd87-4acf-a2c8-801fa4888090" class="Overlay-title sr-only">Menu</h1>
An overlay
</div>
<div class="Overlay-actionWrap">
<button popovertarget="overlay-7a7305f7-dd87-4acf-a2c8-801fa4888090" popovertargetaction="hide" data-close-dialog-id="overlay-7a7305f7-dd87-4acf-a2c8-801fa4888090" aria-label="Close" type="button" data-view-component="true" class="close-button Overlay-closeButton"><svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-x">
<path d="M3.72 3.72a.75.75 0 0 1 1.06 0L8 6.94l3.22-3.22a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734L9.06 8l3.22 3.22a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L8 9.06l-3.22 3.22a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042L6.94 8 3.72 4.78a.75.75 0 0 1 0-1.06Z"></path>
</svg></button>
</div>
</div>
</header>
<div data-view-component="true" class="Overlay-body">
<button id="overlay-button" type="button" data-view-component="true" class="Button--secondary Button--medium Button"> <span class="Button-content">
<span class="Button-label">A button</span>
</span>
</button><tool-tip id="tooltip-61c2d858-09e2-415e-ae68-a94589519632" for="overlay-button" popover="manual" data-direction="s" data-type="description" data-view-component="true" class="sr-only position-absolute">This is a tooltip in an Overlay</tool-tip>
</div>
</div>
</anchored-position>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<%= 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 %>

No assets to display.