Repository navigation
Done
Labels
accessibilityBarrier affecting people with disabilitiesarea:reactpivotkit-react and pivotkit-element UIenhancementNew feature or request
Milestone
Description
Readers often ask how to read the table's header: which names are fields, which are items, and what the numbers are. The fix belongs in the table itself, because it also stands without the zones above it (exports, embedded reports).
Reproduce
Playground: https://pivotkit.eize.dev/playground/?data=tickets&start=tickets-per-team-and-priority
- As loaded: Team on Rows, Priority on Columns, Count of Ticket on Values.
- Add Category to Rows and Channel to Columns for two levels on each axis.
What confuses readers
- Column field names sit in the last row-header column. "Priority" and "Channel" stand in the same column as "Category", so they read as part of Category.
- The value name takes its own header row. "Count of Ticket" is left-aligned over the first data column. It reads as the heading of that one column, and it costs a row.
- Field names look like items. "Priority" and "P1 Critical" have the same weight, and every item carries a sort arrow, which makes the header busy.
What works: row field names ("Team", "Category") stand above their own columns.
Proposal: the corner as a legend
- The value name goes into the top-left corner cell; its own row goes away. With two or more value fields, the values stay the lowest column level.
- Each column field name spans the corner, right-aligned and pointing at its level ("Priority →", "Channel →"), one per column level.
- Row field names stay above their columns.
- Field names look different from items: smaller, muted, with the zone icons (≡ Rows, ||| Columns), so the reader links them to the zones.
- Sort arrows on items show on hover, on focus and when that item is sorted.
- Phone width: the row fields share one header column, so their names stack there ("Team › Category").
An empty corner (some grids only put a field chooser there) is not enough: it leaves the reader to guess which field is on which axis.
Open for whoever builds it: the exact styling, and whether the legend should be a table setting (Excel lets users hide field headers).
Check
- Screenshots from the playground before and after: one and two levels on each axis, one and two value fields, light and dark, 1280 px and 390 px.
- Screen readers: the corner cells keep header semantics, so a data cell still announces its row and column items.
- Export (XLSX, CSV, HTML report) keeps a readable header.
Metadata
Metadata
Assignees
Labels
accessibilityBarrier affecting people with disabilitiesarea:reactpivotkit-react and pivotkit-element UIenhancementNew feature or request
Activity
eizedev commentedon Nov 25, 2026
Decision, after mockups and a UX review:
Table header (B3)
Field area and field list
Tokens (light / dark defaults, all overridable)
--pk-zone-rows#1d5fcc / #8db4ff,--pk-zone-columns#a85a00 / #f2b559,--pk-zone-values#0b7a5c / #5fd6ac,--pk-zone-filters= the muted text colour.--pk-zone-tint(16%) and--pk-zone-tint-base(the shared base).--pk-type-string,--pk-type-number,--pk-type-dateand--pk-type-booleandefault to the muted colour; set them to colour the types again..pk-chip-valuestakes its border from--pk-type-numbertoday; it moves to the zone tokens.color-mix(), and a system border in forced-colors mode.Open points from the review
aria-sort. On touch the field menu stays the way to sort.scopeon the header cells, a label for the empty corner.Final review of the mockup: fix while building
--pk-type-*(no!important).feat(react): zone colours and a readable table header (#962)
eizedev commentedon Nov 26, 2026
Done: the table header, zone colours and tokens came in #962, and the PowerShell Universal module maps the new tokens since eizedev/powershell-universal-components#242.
fix(react): show a sort mark on every header that sorts, after its na…