gitoria

layouts

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commitc545b642c545b642content-first: nest child and compound selectors in Stylemrec545b642/docs/layouts/user-menu.md

1.0 KB

  1. # UserMenu (`theme/shell/user-menu.hl`) — `<user-menu>`
  2. **Purpose**: the signed-in user's icon at the header's right end and its dropdown (creator, tracker#32: last item always
  3. Logout, before it Settings).
  4. **Parent**: `AppHeader`, last child. Signed out: put the login (ident selector) there INSTEAD.
  5. **Children (slot)**: links (or buttons) of the dropdown, Settings then Logout last.
  6. **Members**: `name` (shown muted at the top of the dropdown; '' = none), `label` ('User menu').
  7. **Renders**: `button.user-toggle` (popovertarget `user-menu`, an icon) and `nav#user-menu[popover]` with `p.who` + slot.
  8. **Phone / desktop**: the same: the dropdown opens under the header at the right edge (desktop: flush with the content
  9. column's right edge). Esc, a tap outside or a tap on one of its links closes it.
  10. **Semantics**: the button has `aria-label`; the dropdown is a `nav[aria-label]` popover (native focus + Esc).
  11. **Example**: `UserMenu { name = "az5b2" a { href = "/settings" "Settings" } a { href = "/logout" "Logout" } }`.
  12. **Do not use for**: app actions (they belong in the page) or the signed-out state.

Branches

Latest commits

  • c545b642content-first: nest child and compound selectors in Stylemre
  • eae2be7aapp-sidebar: nest child selectors and document caller-slot gapmre
  • 69c9f784Record LY7 slot nesting blocker and minimal repromre
  • b1d4f379app-header: nest child and compound selectors in Stylemre
  • 6385ff8eRecord LY7 style formatting proof and review statusmre
  • 0100f51etracker-demo: format Style with nested rules and bare mediamre
  • 5f82554enotes-demo: format Style with nested rules and bare mediamre
  • 3dc27d78mail-demo: format Style with nested rules and bare mediamre
  • cf9648afhome: format Style with nested rules and bare mediamre
  • 846a6242user-menu: format Style with nested rules and bare mediamre
  • 4d58708cthree-pane: format Style with nested rules and bare mediamre
  • 0bbfc553main-menu: format Style with nested rules and bare mediamre
  • 7755199dlist-first: format Style with nested rules and bare mediamre
  • 35199303content-first: format Style with nested rules and bare mediamre
  • 00f6e698app-sidebar: format Style with nested rules and bare mediamre
  • bb2f29c9app-header: format Style with nested rules and bare mediamre
  • 3aca2d7fSync components from 8176eb1 with reviewed nested stylesmre
  • 87e4003dRe-vendor layouts to Hybriel set day35mre
  • d8628cfflayouts: a startup error prints its message before exit 1 (hybriel#247)mre
  • 180fd76elayouts: MdEditor from components 59704ce (text on the clipboard always pastes, a file manager copy still attaches; pipe rows; empty Table-button table; tickets#49, notes#5)mre