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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<action-menu data-select-variant="single" data-view-component="true">
<focus-group direction="vertical" mnemonics retain>
<button id="action-menu-156f2d16-022f-4652-b880-65e8a5deb002-button" popovertarget="action-menu-156f2d16-022f-4652-b880-65e8a5deb002-overlay" aria-controls="action-menu-156f2d16-022f-4652-b880-65e8a5deb002-list" aria-haspopup="true" type="button" data-view-component="true" class="Button--secondary Button--medium Button"> <span class="Button-content">
<span class="Button-label">Menu</span>
</span>
</button>
<anchored-position id="action-menu-156f2d16-022f-4652-b880-65e8a5deb002-overlay" anchor="action-menu-156f2d16-022f-4652-b880-65e8a5deb002-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">
<ul aria-labelledby="action-menu-156f2d16-022f-4652-b880-65e8a5deb002-button" id="action-menu-156f2d16-022f-4652-b880-65e8a5deb002-list" role="menu" data-view-component="true" class="ActionListWrap--inset ActionListWrap">
<li data-targets="action-list.items" data-item-id="fast_forward" role="none" data-view-component="true" class="ActionListItem">
<button tabindex="-1" id="item-f9d53c10-56d0-4dfd-b6f8-88ec9ddf7753" type="button" role="menuitemradio" 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" data-item-id="recursive" role="none" data-view-component="true" class="ActionListItem">
<button tabindex="-1" id="item-f07c131a-b00a-44aa-8cdf-999e73c58871" type="button" role="menuitemradio" 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" data-item-id="ours" role="none" data-view-component="true" class="ActionListItem">
<button tabindex="-1" id="item-d2b6b862-8ccf-46d5-aed8-7b652978d717" type="button" role="menuitemradio" 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" data-item-id="resolve" role="none" data-view-component="true" class="ActionListItem">
<button tabindex="-1" id="item-5539b3ed-11d2-4335-9421-88fe603bdb4f" type="button" role="menuitemradio" 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>
<li data-targets="action-list.items" data-item-id="disabled" role="none" data-view-component="true" class="ActionListItem ActionListItem--disabled">
<button tabindex="-1" id="item-7e4f814f-c7a9-402e-9b83-1f6a0d71d4af" type="button" role="menuitemradio" aria-disabled="true" 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">
Disabled
</span>
</button>
</li>
<li hidden="hidden" data-targets="action-list.items" data-item-id="hidden" role="none" data-view-component="true" class="ActionListItem ActionListItem--disabled">
<button tabindex="-1" id="item-f013652c-2d2e-437b-ad89-a1aa91e43906" type="button" role="menuitemradio" aria-disabled="true" 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">
Hidden
</span>
</button>
</li>
</ul>
</div>
</action-list>
</div>
</div>
</anchored-position> </focus-group>
</action-menu>
1
2
3
4
5
6
7
8
9
render(Primer::Alpha::ActionMenu.new(select_variant: :single)) do |menu|
menu.with_show_button { "Menu" }
menu.with_item(label: "Fast forward", item_id: :fast_forward)
menu.with_item(label: "Recursive", item_id: :recursive)
menu.with_item(label: "Ours", item_id: :ours)
menu.with_item(label: "Resolve", item_id: :resolve)
menu.with_item(label: "Disabled", disabled: true, item_id: :disabled)
menu.with_item(label: "Hidden", hidden: true, disabled: true, item_id: :hidden)
end

No assets to display.