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
<action-menu data-select-variant="none" data-view-component="true">
<focus-group direction="vertical" mnemonics retain>
<button id="menu-1-button" popovertarget="menu-1-overlay" aria-controls="menu-1-list" aria-haspopup="true" type="button" data-view-component="true" class="Button--secondary Button--medium Button"> <span class="Button-content">
<span class="Button-label">Meal preference</span>
</span>
<span class="Button-visual Button-trailingAction">
<svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-triangle-down">
<path d="m4.427 7.427 3.396 3.396a.25.25 0 0 0 .354 0l3.396-3.396A.25.25 0 0 0 11.396 7H4.604a.25.25 0 0 0-.177.427Z"></path>
</svg>
</span>
</button>
<anchored-position id="menu-1-overlay" anchor="menu-1-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="menu-1-button" id="menu-1-list" role="menu" data-view-component="true" class="ActionListWrap--inset ActionListWrap">
<action-list>
<div data-view-component="true">
<ul id="group-5e48ae65-985b-42eb-8bdb-03ca7b2fe2fb" role="group" data-view-component="true" class="ActionListWrap">
<li data-targets="action-list.items" role="none" data-view-component="true" class="ActionListItem">
<button tabindex="-1" id="item-49268faf-6e7b-4c88-9220-f95472ad9a01" type="button" role="menuitem" data-view-component="true" class="ActionListContent">
<span data-view-component="true" class="ActionListItem-label">
Meat option
</span>
</button>
</li>
</ul>
</div>
</action-list>
<li role="presentation" aria-hidden="true" data-view-component="true" class="ActionList-sectionDivider"></li>
<action-list>
<div data-view-component="true">
<div data-view-component="true" class="ActionList-sectionDivider">
<div id="heading-title-6ca3ac4f-622f-4565-832c-85face273ab2" data-view-component="true" class="ActionList-sectionDivider-title">
Vegetarian options
</div>
</div>
<ul id="group-73b70351-fbb9-4e03-890b-87c3913bcc51" role="group" aria-labelledby="heading-title-6ca3ac4f-622f-4565-832c-85face273ab2" data-view-component="true" class="ActionListWrap">
<li data-targets="action-list.items" role="none" data-view-component="true" class="ActionListItem">
<button id="item-96abe35b-3f9e-483f-ad7a-0e1ecf68907b" type="button" role="menuitem" data-view-component="true" class="ActionListContent">
<span data-view-component="true" class="ActionListItem-label">
Grilled portbello mushroom
</span>
</button>
</li>
<li data-targets="action-list.items" role="none" data-view-component="true" class="ActionListItem">
<button id="item-babbe157-d98b-45a1-b301-a6cdaec1ac86" type="button" role="menuitem" data-view-component="true" class="ActionListContent">
<span data-view-component="true" class="ActionListItem-label">
Polenta
</span>
</button>
</li>
<li data-targets="action-list.items" role="none" data-view-component="true" class="ActionListItem">
<button id="item-ffdec403-1ad6-408a-916e-fc1a8d007fbc" type="button" role="menuitem" data-view-component="true" class="ActionListContent">
<span data-view-component="true" class="ActionListItem-label">
Seitan
</span>
</button>
</li>
</ul>
</div>
</action-list>
<li role="presentation" aria-hidden="true" data-view-component="true" class="ActionList-sectionDivider"></li>
<action-list>
<div data-view-component="true">
<ul id="group-44ef0f9a-7bab-4018-905f-6cb755b523df" role="group" data-view-component="true" class="ActionListWrap">
<li data-targets="action-list.items" role="none" data-view-component="true" class="ActionListItem">
<button tabindex="-1" id="item-b39528f1-e8d1-40a8-8674-0b507fc42dd0" type="button" role="menuitem" data-view-component="true" class="ActionListContent">
<span data-view-component="true" class="ActionListItem-label">
Fish option
</span>
</button>
</li>
</ul>
</div>
</action-list>
</ul>
</div>
</action-list>
</div>
</div>
</anchored-position> </focus-group>
</action-menu>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
render(Primer::Alpha::ActionMenu.new(menu_id: "menu-1")) do |menu|
menu.with_show_button do |button|
button.with_trailing_action_icon(icon: :"triangle-down")
"Meal preference"
end
menu.with_item(label: "Meat option")
menu.with_divider
menu.with_group do |group|
group.with_heading(title: "Vegetarian options")
group.with_item(label: "Grilled portbello mushroom")
group.with_item(label: "Polenta")
group.with_item(label: "Seitan")
end
menu.with_divider
menu.with_item(label: "Fish option")
end

No assets to display.