mirror of
https://github.com/status-im/consul.git
synced 2025-02-07 19:35:35 +00:00
aea3d00a9d
* Modify templates with codemods angle brackets * ui: Fix up problem with intention filter action attribute Co-authored-by: Kenia <19161242+kaxcode@users.noreply.github.com>
27 lines
1.1 KiB
Handlebars
27 lines
1.1 KiB
Handlebars
{{yield (concat 'popover-menu-' guid)}}
|
|
<AriaMenu @keyboardAccess={{keyboardAccess}} as |change keypress ariaLabelledBy ariaControls ariaExpanded keypressClick|>
|
|
<ToggleButton @checked={{ariaExpanded}} @onchange={{queue change (action "change")}} as |click|>
|
|
<button type="button" aria-haspopup="menu" onkeydown={{keypress}} onclick={{click}} id={{ariaLabelledBy}} aria-controls={{ariaControls}}>
|
|
<YieldSlot @name="trigger">
|
|
{{yield}}
|
|
</YieldSlot>
|
|
</button>
|
|
</ToggleButton>
|
|
<div class={{position}}>
|
|
<input type="checkbox" id={{concat 'popover-menu-' guid '-'}} />
|
|
{{#each submenus as |sub|}}
|
|
<input type="checkbox" id={{concat 'popover-menu-' guid '-' sub}} />
|
|
{{/each}}
|
|
{{#yield-slot name='header'}}
|
|
<div>
|
|
{{yield}}
|
|
</div>
|
|
{{else}}
|
|
{{/yield-slot}}
|
|
<ul role="menu" id={{ariaControls}} aria-labelledby={{ariaLabelledBy}} aria-expanded={{ariaExpanded}}>
|
|
<YieldSlot @name="menu" @params={{block-params (concat "popover-menu-" guid "-") send keypressClick}}>
|
|
{{yield}}
|
|
</YieldSlot>
|
|
</ul>
|
|
</div>
|
|
</AriaMenu> |