Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .agent/skills/basalt-html/parts/menu.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .agent/skills/basalt-html/parts/usage/menu.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ A popup of actions: the opener is a `popovertarget` button, the menu comes right

- Every row is a `button.menu-item` with its role (`menuitem`, `menuitemcheckbox`, `menuitemradio`); a radio sits in a `role="group"` with its siblings. The script adds the check seat; a click flips `aria-checked` (a radio picks one) and fires `menuchange` on the row, then leaves the menu open. A plain item closes the menu: listen for its `click`.
- Arrow keys, Home, End and typing a name move the lit row; opened by a key the first row is lit. Tab closes.
- `.menu-item-description` is a second line, only when the label alone can't tell choices apart; it makes the row two lines and the menu as wide as its text.
- `.menu-item-description` is a second line, only when the label alone can't tell choices apart; the menu is as wide as its text up to 320, and a longer description wraps (the row grows; the label stays one line).
- A shortcut is a real one the page binds: `<span data-kbd="⌘ D"></span>` last in the row, and `aria-keyshortcuts="Meta+D"` on the row. At most one per row.
- `data-danger` is red text, never a fill.
Loading
Loading