frontend: one header menu for the links, user, settings and alerts popovers
Part of the unification order in the UI sweep issue (step c). The four header menus each kept their own open state, dismiss hook and a copy of the popover CSS, and the copies had drifted (offset, padding, fade-in). A shared HeaderMenu now owns the state, the dismiss rules and the popover look; each menu supplies its button and its rows. The settings popover moves 0.15em lower and the settings and alerts popovers gain the fade-in.
This commit is contained in:
parent
25965341e0
commit
6f73bf0c55
1 changed files with 310 additions and 365 deletions
|
|
@ -155,6 +155,12 @@ list — this doc won't try to keep a duplicate inventory in sync. A yes/no
|
|||
option in a form uses `CheckboxField`, which sizes its row like the other
|
||||
fields, rather than a bare `<input type="checkbox">`.
|
||||
|
||||
The header menus (links, user, settings and alerts) share one popover,
|
||||
`HeaderMenu` in `@hive/shared`: it owns the open state, the dismiss rules (a
|
||||
press outside or Escape closes it) and the popover look, and each menu supplies
|
||||
its button and its rows. A new header menu uses it and doesn't write its own
|
||||
popover stylesheet.
|
||||
|
||||
**Every new `ui/` component gets a demo section on `/components` the
|
||||
same day it lands** — no building block without a place to see it. One
|
||||
deliberate exception exists today: `FormField`, the internal label+
|
||||
|
|
|
|||
Loading…
Reference in a new issue