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
<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 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"> <section style="--pc-box-border-color: transparent;--pc-box-border-style: solid;--pc-box-padding-block-end-xs: var(--p-space-4);--pc-box-padding-block-start-xs: var(--p-space-4);--pc-box-padding-inline-end-xs: var(--p-space-4);--pc-box-padding-inline-start-xs: var(--p-space-4)" class="Polaris-Box"> <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> </section> </div> <span data-polaris-scrollable-target="bottomEdge"></span> </div> <div style="--pc-horizontal-stack-align: ;--pc-horizontal-stack-block-align: center;--pc-horizontal-stack-wrap: wrap;--pc-horizontal-stack-gap-xs: var(--p-space-4)" class="Polaris-Modal-Footer Polaris-HorizontalStack"> <div style="--pc-box-border-color: var(--p-color-border-subdued);--pc-box-border-style: solid;--pc-box-border-block-start-width: var(--p-border-width-1);--pc-box-min-height: var(--p-space-12);--pc-box-padding-block-end-xs: var(--p-space-4);--pc-box-padding-block-start-xs: var(--p-space-4);--pc-box-padding-inline-end-xs: var(--p-space-4);--pc-box-padding-inline-start-xs: var(--p-space-4);--pc-box-width: 100%" class="Polaris-Box"> <div class="Polaris-LegacyStack Polaris-LegacyStack--alignmentCenter"> <div class="Polaris-LegacyStack__Item Polaris-LegacyStack__Item--fill"></div> <div class="Polaris-LegacyStack__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
<%= polaris_button(data: { controller: "polaris", target: "#demo-modal", action: "polaris#openModal",}) { "Open" } %><%= polaris_modal( id: "demo-modal", title: false, open: true,) do |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.with_primary_action { "Add instagram" } %> <% modal.with_secondary_action { "Learn more" } %><% end %>
No notes provided.
No params configured.