Shells
Menu
A disclosure hanging off a trigger: a panel-weight popover of checkboxes or links, not a permanent row of controls.
The popover is drawn at rule 3's panel weight on the float surface,
because it floats above everything else on the page and the heavier step is
what says so. The trigger is an ordinary .axi-btn carrying
aria-expanded and aria-controls; this class only styles the panel it
opens, and the open/close wiring is the consumer's.
Its z-index: 41 is one above .axi-mast, deliberately: both sit in the
root stacking context, so a toolbar scrolled under the sticky masthead would
otherwise open its menu behind it. Labels inside it need no class of their
own; a checkbox does, now that .axi-check exists as the styled path for
one - a bare <input type="checkbox"> renders as unstyled OS chrome inside
the popover.
The fill is --axi-surface-float, not --axi-surface-raised. Raised was
the only word for "higher than a panel" before the float token existed, but
height is carried by the border and the block - the modal is the highest
surface in the language and sits on the plain fill. What raised was really
lending a popover was opacity, and opacity is the one thing a translucent
theme takes away.
An open filter menu
Shown open; a real one starts with the hidden attribute set. The popover hangs below the trigger, so the room for it is reserved under the box, not inside it<div class="axi-menu" style="margin-bottom: 200px">
<button class="axi-btn axi-btn--dashed" type="button" aria-expanded="true" aria-controls="menu-demo-pop">
Filters <span class="axi-badge-count">3</span>
</button>
<div class="axi-menu__pop" id="menu-demo-pop" style="--axi-menu-width: 340px">
<label><input type="checkbox" class="axi-check" checked> Injects into the client</label>
<label><input type="checkbox" class="axi-check" checked> Simulates input</label>
<label><input type="checkbox" class="axi-check" checked> Reads process memory</label>
<label><input type="checkbox" class="axi-check"> Archived upstream</label>
<label><input type="checkbox" class="axi-check"> No release artifacts</label>
</div>
</div>
Knobs
| Property | Sets | Fallback |
|---|---|---|
--axi-menu-width | width of .axi-menu__pop | 310px |