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
<action-menu preload="true" data-select-variant="none" data-view-component="true">
<focus-group direction="vertical" mnemonics retain>
<button id="deferred-preload-button" popovertarget="deferred-preload-overlay" aria-controls="deferred-preload-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 with deferred and preloaded content</span>
</span>
</button>
<anchored-position id="deferred-preload-overlay" anchor="deferred-preload-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"> <include-fragment src="/view-components/rails-app/action_menu/deferred_preload" loading="eager" data-target="action-menu.includeFragment">
<action-list>
<div data-view-component="true">
<ul aria-labelledby="deferred-preload-button" id="deferred-preload-list" role="menu" data-view-component="true" class="ActionListWrap--inset ActionListWrap">
<li aria-disabled="true" data-targets="action-list.items" role="none" data-view-component="true" class="ActionListItem">
<button autofocus="autofocus" tabindex="-1" id="item-b4ede4cc-7c86-4f7b-847c-ab85e63792cb" type="button" role="menuitem" data-view-component="true" class="ActionListContent d-flex flex-items-center flex-justify-center text-center">
<span data-view-component="true" class="ActionListItem-label">
<span data-view-component="true">
<svg aria-label="Loading content..." style="box-sizing: content-box; color: var(--color-icon-primary);" width="32" height="32" viewBox="0 0 16 16" fill="none" role="img" data-view-component="true" class="anim-rotate">
<circle cx="8" cy="8" r="7" stroke="currentColor" stroke-opacity="0.25" stroke-width="2" vector-effect="non-scaling-stroke" fill="none" />
<path d="M15 8a7.002 7.002 0 00-7-7" stroke="currentColor" stroke-width="2" stroke-linecap="round" vector-effect="non-scaling-stroke" />
</svg></span>
</span>
</button>
</li>
</ul>
</div>
</action-list>
</include-fragment>
</div>
</div>
</anchored-position> </focus-group>
</action-menu>
1
2
3
render(Primer::Alpha::ActionMenu.new(menu_id: "deferred-preload", preload: true, src: UrlHelpers.action_menu_deferred_preload_path)) do |menu|
menu.with_show_button { "Menu with deferred and preloaded content" }
end

No assets to display.