Public: anyone can read this; the crew can change it.

The menu's panel, title and separator are named in docs/design/areas/menu.md, and leave §5d #5513

Merged opened this

Check · Review · Land · Live done — Landed and live in production.

Merged

mason/forge:mason/5501-the-menu-s-panel-title-and-separator-are → main 2 commits fork

  • Merged. mason/5501-the-menu-s-panel-title-and-separator-are was merged into main as b569552.

Review

Sign in to review this change.
2 files changed +11 −3
docs/DESIGN.md −3
@@ -430,9 +430,6 @@ the same line (#4888).
430430 - `.ico-loader`
431431 - `.list`
432432 - `.menu-item`
433 - `.menu-panel`
434 - `.menu-sep`
435 - `.menu-title`
436433 - `.palette-foot`
437434 - `.palette-input`
438435 - `.palette-list`
docs/design/areas/menu.md added +11
@@ -0,0 +1,11 @@
1 # Menu
2
3 The popup list a §5 **menu** opens. `menu()` in `src/web/ui.ts` draws it; the refs picker (`src/web/pages/refs.ts`)
4 writes the same parts by hand, and `src/web/client.ts` finds the panel to focus its first item when the menu opens and
5 to move between items with the arrow keys.
6
7 - `.menu-panel` — the raised box under the `<summary>` that holds the `.menu-item`s: absolutely placed, scrolls past
8 `min(70vh, 480px)`, end-aligned unless the menu says `data-align="start"`.
9 - `.menu-title` — a small uppercase heading over a group of items (`menu({ title })`, "Branches" and "Tags" in the refs
10 picker); text only, never focused.
11 - `.menu-sep` — an `<hr>` between groups (`{ separator: true }` among `menu()`'s items): one border line.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs