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
68
69
70
71
72
73
74
<form action="/view-components/rails-app/action_menu/form_action.html" accept-charset="UTF-8" method="post"><input type="hidden" name="authenticity_token" value="6Dfg-dHlHZ4RO7J2-yXqPWhUpH8K_0-cbzydjclVjz5yAXA8OShRZNdnerC_LDGHteyL2-dYnd9T5ZGqPfUpBQ" autocomplete="off" />
<action-menu data-select-variant="multiple" data-dynamic-label="" data-dynamic-label-prefix="Strategy" data-view-component="true">
<focus-group direction="vertical" mnemonics retain>
<button id="action-menu-426af3a6-cccf-48d9-91ef-60d32962636e-button" popovertarget="action-menu-426af3a6-cccf-48d9-91ef-60d32962636e-overlay" aria-controls="action-menu-426af3a6-cccf-48d9-91ef-60d32962636e-list" aria-haspopup="true" type="button" data-view-component="true" class="Button--secondary Button--medium Button"> <span class="Button-content">
<span class="Button-label">Strategy</span>
</span>
</button>
<anchored-position id="action-menu-426af3a6-cccf-48d9-91ef-60d32962636e-overlay" anchor="action-menu-426af3a6-cccf-48d9-91ef-60d32962636e-button" align="start" side="outside-bottom" anchor-offset="normal" popover="auto" data-view-component="true">
<div data-view-component="true" class="Overlay Overlay--size-auto">
<div data-view-component="true" class="Overlay-body Overlay-body--paddingNone"> <action-list>
<div data-view-component="true">
<span data-list-inputs="true">
<input multiple="multiple" autocomplete="off" type="hidden" name="foo[]" />
</span>
<ul aria-labelledby="action-menu-426af3a6-cccf-48d9-91ef-60d32962636e-button" id="action-menu-426af3a6-cccf-48d9-91ef-60d32962636e-list" role="menu" data-view-component="true" class="ActionListWrap--inset ActionListWrap">
<li data-targets="action-list.items" role="none" data-view-component="true" class="ActionListItem">
<button tabindex="-1" data-value="fast_forward" id="item-7361f061-ccf6-4017-b22b-ffa724488c06" type="button" role="menuitemcheckbox" aria-checked="false" data-view-component="true" class="ActionListContent">
<span class="ActionListItem-visual ActionListItem-action--leading">
<svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-check ActionListItem-singleSelectCheckmark">
<path d="M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0Z"></path>
</svg>
</span>
<span data-view-component="true" class="ActionListItem-label">
Fast forward
</span>
</button>
</li>
<li data-targets="action-list.items" role="none" data-view-component="true" class="ActionListItem">
<button tabindex="-1" data-value="recursive" id="item-dcda5b79-9a2d-4b3e-9cd5-cb3fd4ea12b9" type="button" role="menuitemcheckbox" aria-checked="false" data-view-component="true" class="ActionListContent">
<span class="ActionListItem-visual ActionListItem-action--leading">
<svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-check ActionListItem-singleSelectCheckmark">
<path d="M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0Z"></path>
</svg>
</span>
<span data-view-component="true" class="ActionListItem-label">
Recursive
</span>
</button>
</li>
<li data-targets="action-list.items" role="none" data-view-component="true" class="ActionListItem">
<button tabindex="-1" data-value="ours" id="item-46687008-4a1f-4f9f-a4c3-79eec8bcf556" type="button" role="menuitemcheckbox" aria-checked="false" data-view-component="true" class="ActionListContent">
<span class="ActionListItem-visual ActionListItem-action--leading">
<svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-check ActionListItem-singleSelectCheckmark">
<path d="M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0Z"></path>
</svg>
</span>
<span data-view-component="true" class="ActionListItem-label">
Ours
</span>
</button>
</li>
<li data-targets="action-list.items" role="none" data-view-component="true" class="ActionListItem">
<button tabindex="-1" id="item-d7454b5c-b873-4a6b-9c6c-e7eae276c291" type="button" role="menuitemcheckbox" aria-checked="false" data-view-component="true" class="ActionListContent">
<span class="ActionListItem-visual ActionListItem-action--leading">
<svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-check ActionListItem-singleSelectCheckmark">
<path d="M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0Z"></path>
</svg>
</span>
<span data-view-component="true" class="ActionListItem-label">
Resolve
</span>
</button>
</li>
</ul>
</div>
</action-list>
</div>
</div>
</anchored-position> </focus-group>
</action-menu> <hr>
<div>
<input type="submit" name="commit" value="Save " class="Button--secondary Button--medium Button" data-disable-with="Save " />
</div>
</form>
1
2
3
4
5
6
7
8
9
10
11
12
13
<%= form_with(url: action_menu_form_action_path(format: route_format)) do |f| %>
<%= render(Primer::Alpha::ActionMenu.new(select_variant: :multiple, dynamic_label: true, dynamic_label_prefix: "Strategy", form_arguments: { builder: f, name: "foo" })) do |menu| %>
<% menu.with_show_button { "Strategy" } %>
<% menu.with_item(label: "Fast forward", data: { value: "fast_forward" }) %>
<% menu.with_item(label: "Recursive", data: { value: "recursive" }) %>
<% menu.with_item(label: "Ours", data: { value: "ours" }) %>
<% menu.with_item(label: "Resolve") %>
<% end %>
<hr>
<div>
<%= f.submit(class: "Button--secondary Button--medium Button") %>
</div>
<% end %>

No assets to display.