More commands · Extended localized content for verification and layout resilience
VERIFICATION-0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF
<forma-overflow-command-disclosure>
Moves secondary commands into explicit native disclosure without shrinking targets or hiding group meaning.
<forma-overflow-command-disclosure>patterns/overflow-command-disclosure.htmlAn overflow command disclosure is a native details element whose summary (normally "More commands" or a more specific phrase) reveals a labelled group of secondary buttons. The browser owns open and closed state, keyboard toggling and the expanded announcement. The revealed panel is in normal document flow, so it pushes content down rather than floating over it, and the commands keep full 44px targets. Deciding which commands are secondary is an application decision; the disclosure never removes a command, it only defers it.
details/summary: Enter or Space on the summary toggles it, and the expanded state is announced by the platform.display: list-item, Chromium and Firefox draw no disclosure marker, so the summary text must say what it reveals.role="group" label, reusing the command-group spacing.The smallest correct markup: the canonical pattern from patterns/overflow-command-disclosure.html inside its public tag. Copy this first, then adapt labels, names and state.
Rendered from the canonical pattern file.
Static specimen. Its buttons stand for application actions that the consuming application implements; this script-free documentation does not perform them. Its controls are shown for their markup and appearance and cannot be operated here.
<forma-overflow-command-disclosure class="forma-component-tag">
<details class="forma-overflow-commands">
<summary>More commands</summary>
<div class="forma-overflow-commands__panel" role="group" aria-label="More commands">
<button type="button">Duplicate</button><button type="button">Archive</button>
</div>
</details>
</forma-overflow-command-disclosure>
Click or tap the code once to select all of it, then copy.
The common case: the frequent commands stay visible in a Command group, and three secondary commands sit behind a disclosure at the end of the same row. The panel label repeats the summary text so the revealed buttons are announced as one group.
Static specimen. Its buttons stand for application actions that the consuming application implements; this script-free documentation does not perform them. Its controls are shown for their markup and appearance and cannot be operated here.
<forma-overflow-command-disclosure class="forma-component-tag">
<section class="forma-command-group" aria-labelledby="overflow-command-disclosure-record-toolbar-overflow-label">
<h2 class="forma-command-group__label" id="overflow-command-disclosure-record-toolbar-overflow-label">Customer record</h2>
<div class="forma-command-group__commands">
<button type="button">Edit</button>
<button type="button">Send message</button>
<details class="forma-overflow-commands">
<summary>More record commands</summary>
<div class="forma-overflow-commands__panel" role="group" aria-label="More record commands">
<button type="button">Merge duplicates</button>
<button type="button">Export history</button>
<button type="button">Archive customer</button>
</div>
</details>
</div>
</section>
</forma-overflow-command-disclosure>
Click or tap the code once to select all of it, then copy.
The open attribute renders the disclosure expanded on first load, for example when the application restores the user's last choice. Six commands with long labels wrap inside the panel. After load the browser owns the state; the attribute reflects it.
Static specimen. Its buttons stand for application actions that the consuming application implements; this script-free documentation does not perform them. Its controls are shown for their markup and appearance and cannot be operated here.
<forma-overflow-command-disclosure class="forma-component-tag">
<details class="forma-overflow-commands" open>
<summary>Bulk commands for 24 selected items</summary>
<div class="forma-overflow-commands__panel" role="group" aria-label="Bulk commands for 24 selected items">
<button type="button">Assign to a teammate</button>
<button type="button">Change priority</button>
<button type="button">Add labels</button>
<button type="button">Move to another project</button>
<button type="button">Export as CSV</button>
<button type="button">Close selected items</button>
</div>
</details>
</forma-overflow-command-disclosure>
Click or tap the code once to select all of it, then copy.
Each mobile example renders in its own document inside a real narrow viewport, so Forma's media and container queries run exactly as they would on a phone. Choose a width to compare.
At phone width the disclosure keeps secondary commands out of the way until requested. Once open, the panel wraps its commands onto new lines below the summary and pushes the following content down.
Static specimen. Its buttons stand for application actions that the consuming application implements; this script-free documentation does not perform them. Its controls are shown for their markup and appearance and cannot be operated here.
<forma-overflow-command-disclosure class="forma-component-tag">
<div class="forma-stack">
<div class="forma-actions">
<button type="button">Approve</button>
<button type="button">Request changes</button>
</div>
<details class="forma-overflow-commands">
<summary>More review commands</summary>
<div class="forma-overflow-commands__panel" role="group" aria-label="More review commands">
<button type="button">Reassign reviewer</button>
<button type="button">Copy review link</button>
<button type="button">Mark as spam</button>
</div>
</details>
</div>
</forma-overflow-command-disclosure>
Click or tap the code once to select all of it, then copy.
The canonical pattern in a true 320px viewport, the minimum width every Forma component must support without page-level horizontal scrolling.
Static specimen. Its buttons stand for application actions that the consuming application implements; this script-free documentation does not perform them. Its controls are shown for their markup and appearance and cannot be operated here.
Forma components have no JavaScript API. Their public contract is the markup: native elements and attributes you write, and the CSS hooks below. The CSS hook table is generated from the built stylesheet, so it always matches the shipped implementation.
| Attribute | On | Values | Default | Description |
|---|---|---|---|---|
open | details | boolean | absent (closed) | Initial expanded state. The browser toggles it as the user opens and closes the disclosure. |
role | .forma-overflow-commands__panel | group | — | Exposes the revealed commands as one named group. |
aria-label | .forma-overflow-commands__panel | string | — | Names the group; normally the same text as the summary so the context is repeated when focus enters the commands. |
type | button | button | — | Commands are ordinary buttons that must not submit an enclosing form. |
| Hook | Kind | Values or default | Description |
|---|---|---|---|
.forma-overflow-commands | Block class | — | Root details element. Positioned relative so application enhancements can anchor to it. |
.forma-overflow-commands__panel | Element class | — | The revealed wrapping row of commands, with a top gap under the summary. Uses --forma-command-space from an enclosing Command group when present. |
| Keys | Result |
|---|---|
| Tab / Shift+Tab | Moves to the summary, then into the revealed commands when open. |
| Enter / Space | On the summary, toggles the disclosure (native details behavior). On a command, activates it. |
| Event | Description |
|---|---|
toggle | Native event fired on the details element after it opens or closes. |
click | Native click on each command button. |
Does not participate in forms. The commands inside are type="button".
| State | How it is expressed | Presentation |
|---|---|---|
| Closed | no open attribute | Only the summary is visible. There is no visual open/closed marker; the platform announces the collapsed state. |
| Open | open attribute / details[open] | The panel of commands appears below the summary in normal flow. The appearance of the commands is the only visual cue. |
| Focus | :focus-visible on summary | The shared two-tone focus ring on the summary. |
Generated fault-injection specimens expose content, spacing, color-cue, and reduced-effective-contrast risks. They screen presentation robustness as engineering screens without claiming human-subject validation.