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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<button data-controller="polaris-button polaris" data-target="#demo-modal" data-action="polaris#openModal" type="button" class="Polaris-Button">
<span class="Polaris-Button__Content">
<div class="Polaris-Button__Text">
Open
</div>
</span>
</button>
<div id="demo-modal" data-controller="polaris-modal" data-polaris-modal-open-value="true" data-polaris-modal-hidden-class="Polaris--hidden" data-polaris-modal-backdrop-class="Polaris-Backdrop" class="Polaris-Modal-Dialog__Container Polaris--hidden">
<div>
<div role="dialog" aria-modal="true" tabindex="-1" class="Polaris-Modal-Dialog">
<div class="Polaris-Modal-Dialog__Modal">
<div class="Polaris-Modal-Header">
<div class="Polaris-Modal-Header__Title">
<h2 class="Polaris-DisplayText Polaris-DisplayText--sizeSmall">
Reach more shoppers with Instagram product tags
</h2>
</div>
<button type="button" aria-label="Close" onclick="alert('Close modal');" class="Polaris-Modal-CloseButton"><span class="Polaris-Icon Polaris-Icon--colorBase Polaris-Icon--applyColor">
<svg viewbox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" class="Polaris-Icon__Svg" focusable="false" aria-hidden="true"><path d="m11.414 10 6.293-6.293a1 1 0 1 0-1.414-1.414L10 8.586 3.707 2.293a1 1 0 0 0-1.414 1.414L8.586 10l-6.293 6.293a1 1 0 1 0 1.414 1.414L10 11.414l6.293 6.293A.998.998 0 0 0 18 17a.999.999 0 0 0-.293-.707L11.414 10z"></path></svg>
</span></button>
</div>
<div class="Polaris-Modal__BodyWrapper">
<div data-polaris-scrollable-shadow-value="false" data-polaris-scrollable-top-shadow-class="Polaris-Scrollable--hasTopShadow" data-polaris-scrollable-bottom-shadow-class="Polaris-Scrollable--hasBottomShadow" data-controller="polaris-scrollable" style="" class="Polaris-Modal__Body Polaris-Scrollable Polaris-Scrollable--vertical">
<span data-polaris-scrollable-target="topEdge"></span>
<div class="Polaris-Modal-Section">
<div class="Polaris-TextContainer">
<p>
Use Instagram posts to share your products with millions of
people. Let shoppers buy from your store without leaving
Instagram.
</p>
</div>
</div>
<span data-polaris-scrollable-target="bottomEdge"></span>
</div>
</div>
<div class="Polaris-Modal-Footer">
<div class="Polaris-Modal-Footer__FooterContent">
<div class="Polaris-Stack Polaris-Stack--alignmentCenter">
<div class="Polaris-Stack__Item Polaris-Stack__Item--fill"></div>
<div class="Polaris-Stack__Item">
<div class="Polaris-ButtonGroup">
<div class="Polaris-ButtonGroup__Item"> <button type="button" data-controller="polaris-button" class="Polaris-Button">
<span class="Polaris-Button__Content">
<div class="Polaris-Button__Text">
Learn more
</div>
</span>
</button>
</div>
<div class="Polaris-ButtonGroup__Item"> <button type="button" data-controller="polaris-button" class="Polaris-Button Polaris-Button--primary">
<span class="Polaris-Button__Content">
<div class="Polaris-Button__Text">
Add instagram
</div>
</span>
</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<%= polaris_button(data: {
controller: "polaris",
target: "#demo-modal",
action: "polaris#openModal",
}) { "Open" } %>
<%= polaris_modal(
id: "demo-modal",
title: "Reach more shoppers with Instagram product tags",
open: true,
) do |modal| %>
<% modal.close_button(onclick: "alert('Close modal');") %>
<%= polaris_text_container do %>
<p>
Use Instagram posts to share your products with millions of
people. Let shoppers buy from your store without leaving
Instagram.
</p>
<% end %>
<% modal.primary_action { "Add instagram" } %>
<% modal.secondary_action { "Learn more" } %>
<% end %>