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
<div data-controller="polaris-popover" data-polaris-popover-append-to-body-value="false" data-polaris-popover-active-value="true" data-polaris-popover-placement-value="auto" data-polaris-popover-open-class="Polaris-Popover__PopoverOverlay--open" data-polaris-popover-closed-class="Polaris-Popover__PopoverOverlay--closed" style="display: inline-block;"> <div data-polaris-popover-target="activator"> <button data-action="polaris-popover#toggle click@window->polaris-popover#hide" data-controller="polaris-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 8H6.902c-.751 0-1.172.754-.708 1.268L9.292 12.7c.36.399 1.055.399 1.416 0l3.098-3.433C14.27 8.754 13.849 8 13.098 8z"></path></svg> </span> </div> </span> </button> </div> <div data-polaris-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=""> <div class="Polaris-Popover__Wrapper"> <div tabindex="-1" class="Polaris-Popover__Content"> <div data-polaris-scrollable-shadow-value="true" 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-Popover__Pane Polaris-Scrollable Polaris-Scrollable--vertical"> <span data-polaris-scrollable-target="topEdge"></span> <div class="Polaris-ActionList"> <div class="Polaris-ActionList__Section--withoutTitle"> <ul class="Polaris-ActionList__Actions"> <li> <button type="button" class="Polaris-ActionList__Item"> <div class="Polaris-ActionList__Content"> <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.414L11 10.586V3a1 1 0 1 0-2 0v7.586L7.707 9.293a.999.999 0 1 0-1.414 1.414l3 3a.999.999 0 0 0 1.414 0l3-3zM3 16a1 1 0 1 0 0 2h14a1 1 0 1 0 0-2H3z"></path></svg> </span> </span> <span class="Polaris-ActionList__Text"> Import file </span> </div> </button></li> <li> <button type="button" class="Polaris-ActionList__Item"> <div class="Polaris-ActionList__Content"> <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.414L9 5.414V13a1 1 0 1 0 2 0V5.414l1.293 1.293a.999.999 0 1 0 1.414-1.414l-3-3zM3 16a1 1 0 1 0 0 2h14a1 1 0 1 0 0-2H3z"></path></svg> </span> </span> <span class="Polaris-ActionList__Text"> Export file </span> </div> </button></li> </ul> </div> </div> <span data-polaris-scrollable-target="bottomEdge"></span> </div> </div> </div> </div> <div class="Polaris-Popover__FocusTracker" tabindex="0"></div> </div> </div></div>
1
2
3
4
5
6
7
8
<%= polaris_popover(active: true) do |popover| %> <% popover.button(disclosure: true) { "More actions" } %> <%= polaris_action_list do |action_list| %> <% action_list.item(icon: "ImportMinor") { "Import file" } %> <% action_list.item(icon: "ExportMinor") { "Export file" } %> <% end %><% end %>
No notes provided.
No params configured.