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
<div data-controller="polaris-frame" class="Polaris-Frame">
<div
data-polaris-frame-target="saveBar"
class="Polaris-Frame__ContextualSaveBar Polaris-Frame-CSSAnimation--startFade"
>
<div class="Polaris-Frame-ContextualSaveBar">
<div class="Polaris-Frame-ContextualSaveBar__LogoContainer" style="width: 124px">
<img style="width: 124px" src="https://cdn.shopify.com/s/files/1/0446/6937/files/jaded-pixel-logo-color.svg" />
</div>
<div class="Polaris-Frame-ContextualSaveBar__Contents">
<h2 class="Polaris-Text--root Polaris-Text--headingMd Polaris-Text__text--inverse Polaris-Text--semibold Polaris-Text--block Polaris-Text--truncate">
Unsaved changes
</h2>
<div class="Polaris-Frame-ContextualSaveBar__ActionContainer">
<div class="Polaris-LegacyStack Polaris-LegacyStack--spacingTight">
<div class="Polaris-LegacyStack__Item"> <button type="button" data-controller="polaris-button" class="Polaris-Button">
<span class="Polaris-Button__Content">
<div class="Polaris-Button__Text">
Discard
</div>
</span>
</button>
</div>
<div class="Polaris-LegacyStack__Item"> <button type="button" data-controller="polaris-button" class="Polaris-Button Polaris-Button--primary">
<span class="Polaris-Button__Content">
<div class="Polaris-Button__Text">
Save
</div>
</span>
</button>
</div>
</div>
</div>
</div>
</div>
</div>
<div data-polaris-frame-target="navigationOverlay" data-action="click->polaris-frame#closeMenu"></div>
<main class="Polaris-Frame__Main">
<div class="Polaris-Frame__Content">
<div data-action="load@window->polaris-frame#showSaveBar"></div>
</div>
</main>
</div>
1
2
3
4
5
6
7
8
9
10
11
<%= polaris_frame(logo: {
src: "https://cdn.shopify.com/s/files/1/0446/6937/files/jaded-pixel-logo-color.svg",
width: "124px"
}) do |frame| %>
<% frame.with_save_bar(message: "Unsaved changes") do |save_bar| %>
<% save_bar.with_save_action { "Save" } %>
<% save_bar.with_discard_action { "Discard" } %>
<% end %>
<div data-action="load@window->polaris-frame#showSaveBar"></div>
<% end %>