Split shared UI knowledge into atomic topic directories
This commit is contained in:
1 parent
08ff987edb
commit
b0e6402d66
37 files changed
+600
-516
No files matched your search
@@ -0,0 +1,46 @@
|
||||
# Contract: Table Geometry
|
||||
|
||||
Part of [table-management](../contract.md).
|
||||
|
||||
## Canonical Regions
|
||||
|
||||
1. Selection summary line (visible/selected counts).
|
||||
2. Unified table toolbar (single module container).
|
||||
3. Data table body.
|
||||
4. Pagination.
|
||||
|
||||
Toolbar and table must read as one continuous module:
|
||||
|
||||
- toolbar directly above table,
|
||||
- no double borders/rounded-corner seams at the join,
|
||||
- table horizontal overflow remains enabled when needed.
|
||||
|
||||
## Toolbar Geometry
|
||||
|
||||
- One outer toolbar container for all groups.
|
||||
- Groups are separated with vertical separators.
|
||||
- Group title + icon buttons are inline and compact.
|
||||
- Group order is fixed:
|
||||
1. `Selection`
|
||||
2. `Actions`
|
||||
3. `Import/Export`
|
||||
4. `Task Actions`
|
||||
5. `Misc`
|
||||
|
||||
## Button Model
|
||||
|
||||
- Buttons are icon-first inside toolbar groups.
|
||||
- Each button must expose deterministic semantics via `title` and `aria-label`.
|
||||
- Keep primary and destructive variants explicit via style tokens, not by icon ambiguity alone.
|
||||
|
||||
## Table Columns
|
||||
|
||||
- Left `select` column:
|
||||
- no text header label,
|
||||
- minimal fixed width,
|
||||
- centered checkbox control.
|
||||
- Right `actions` column:
|
||||
- no text header label,
|
||||
- minimal width,
|
||||
- right-aligned action icons.
|
||||
- Row action icons in `actions` column are intentionally smaller than toolbar icons.
|
||||
Reference in new issue
Block a user