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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<div data-controller="paper-popover" data-paper-popover-append-to-body-value="false" data-paper-popover-active-value="true" data-paper-popover-placement-value="auto" data-paper-popover-open-class="Polaris-Popover__PopoverOverlay--open" data-paper-popover-closed-class="Polaris-Popover__PopoverOverlay--closed" style="display: inline-block;"> <div data-paper-popover-target="activator"> <button data-action="paper-popover#toggle click@window->paper-popover#hide" data-controller="paper-button" type="button" class="Polaris-Button"> <span class="Polaris-Button__Content"> <div class="Polaris-Button__Text"> More actions </div> <div class="Polaris-Button__Icon"> <span class="Polaris-Icon"> <svg viewbox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" class="Polaris-Icon__Svg" focusable="false" aria-hidden="true"><path d="M13.098 8h-6.196c-.751 0-1.172.754-.708 1.268l3.098 3.432c.36.399 1.055.399 1.416 0l3.098-3.433c.464-.513.043-1.267-.708-1.267Z"></path></svg> </span> </div> </span> </button> </div> <div data-paper-popover-target="popover" class="Polaris-PositionedOverlay Polaris-Popover__PopoverOverlay Polaris-Popover__PopoverOverlay--closed"> <div class="Polaris-Popover"> <div class="Polaris-Popover__FocusTracker" tabindex="0"></div> <div style="--pc-box-background: var(--p-color-bg);--pc-box-border-color: transparent;--pc-box-border-style: solid;--pc-box-border-radius: var(--p-border-radius-2);--pc-box-overflow-x: hidden;--pc-box-overflow-y: hidden;position: relative" class="Polaris-Box"> <div tabindex="-1" class="Polaris-Popover__Content"> <div data-paper-scrollable-shadow-value="true" data-paper-scrollable-top-shadow-class="Polaris-Scrollable--hasTopShadow" data-paper-scrollable-bottom-shadow-class="Polaris-Scrollable--hasBottomShadow" data-controller="paper-scrollable" style="" class="Polaris-Popover__Pane Polaris-Scrollable Polaris-Scrollable--vertical"> <span data-paper-scrollable-target="topEdge"></span> <div class="Polaris-ActionList"> <ul style="--pc-box-border-color: transparent;--pc-box-border-style: solid" class="Polaris-Box Polaris-Box--listReset"> <li style="--pc-box-border-color: var(--p-color-border-subdued);--pc-box-border-style: solid" class="Polaris-Box"> <div style="--pc-box-border-color: transparent;--pc-box-border-style: solid;--pc-box-padding-block-end-xs: var(--p-space-2);--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"> <p class="Polaris-Text--root Polaris-Text--headingXs Polaris-Text--semibold"> File options </p> </div> <ul style="--pc-box-border-color: transparent;--pc-box-border-style: solid;--pc-box-padding-block-end-xs: var(--p-space-2);--pc-box-padding-block-start-xs: var(--p-space-0);--pc-box-padding-inline-end-xs: var(--p-space-2);--pc-box-padding-inline-start-xs: var(--p-space-2)" class="Polaris-Box Polaris-Box--listReset"> <li> <button type="button" class="Polaris-ActionList__Item Polaris-ActionList--active"> <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-HorizontalStack"> <span class="Polaris-ActionList__Prefix"> <span class="Polaris-Icon"> <svg viewbox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" class="Polaris-Icon__Svg" focusable="false" aria-hidden="true"><path d="M13.707 10.707a.999.999 0 1 0-1.414-1.414l-1.293 1.293v-7.586a1 1 0 1 0-2 0v7.586l-1.293-1.293a.999.999 0 1 0-1.414 1.414l3 3a.999.999 0 0 0 1.414 0l3-3zm-10.707 5.293a1 1 0 1 0 0 2h14a1 1 0 1 0 0-2h-14z"></path></svg> </span> </span> <span class="Polaris-ActionList__Text"> Import file </span> </div> </button></li> <li> <button type="button" class="Polaris-ActionList__Item"> <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-HorizontalStack"> <span class="Polaris-ActionList__Prefix"> <span class="Polaris-Icon"> <svg viewbox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" class="Polaris-Icon__Svg" focusable="false" aria-hidden="true"><path d="M10.707 2.293a.999.999 0 0 0-1.414 0l-3 3a.999.999 0 1 0 1.414 1.414l1.293-1.293v7.586a1 1 0 1 0 2 0v-7.586l1.293 1.293a.999.999 0 1 0 1.414-1.414l-3-3zm-7.707 13.707a1 1 0 1 0 0 2h14a1 1 0 1 0 0-2h-14z"></path></svg> </span> </span> <span class="Polaris-ActionList__Text"> Export file </span> </div> </button></li> <li> <button type="button" class="Polaris-ActionList__Item Polaris-ActionList--destructive"> <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-HorizontalStack"> <span class="Polaris-ActionList__Prefix"> <span class="Polaris-Icon"> <svg viewbox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" class="Polaris-Icon__Svg" focusable="false" aria-hidden="true"><path d="M8 3.994c0-1.101.895-1.994 2-1.994s2 .893 2 1.994h4c.552 0 1 .446 1 .997a1 1 0 0 1-1 .997h-12c-.552 0-1-.447-1-.997s.448-.997 1-.997h4zm-3 10.514v-6.508h2v6.508a.5.5 0 0 0 .5.498h1.5v-7.006h2v7.006h1.5a.5.5 0 0 0 .5-.498v-6.508h2v6.508a2.496 2.496 0 0 1-2.5 2.492h-5c-1.38 0-2.5-1.116-2.5-2.492z"></path></svg> </span> </span> <span class="Polaris-ActionList__Text"> Delete file </span> </div> </button></li> </ul> </li> </ul> </div> <span data-paper-scrollable-target="bottomEdge"></span> </div> </div> </div> <div class="Polaris-Popover__FocusTracker" tabindex="0"></div> </div> </div></div>
1
2
3
4
5
6
7
8
9
10
11
<%= paper_popover(active: true) do |popover| %> <% popover.with_button(disclosure: true) { "More actions" } %> <%= paper_action_list do |action_list| %> <% action_list.with_section(title: "File options") do |section| %> <% section.with_item(icon: "ImportMinor", active: true) { "Import file" } %> <% section.with_item(icon: "ExportMinor") { "Export file" } %> <% section.with_item(icon: "DeleteMinor", destructive: true) { "Delete file" } %> <% end %> <% end %><% end %>
No notes provided.
No params configured.