Skip to content

Table

ReleasedShipped in 0.3.0StorybookFigma canvas 57:1652Source
  • To list records people scan, compare and act on in the back office, such as rate seasons, admins, invites or documents.
  • Put the name of each record in the first column (primary), the status in a tag, and row actions such as “Edit” or “Resend · Revoke” in the last column.
  • Turn on the checkbox column when people act on several rows at once, and show the selected rows in light blue.
  • Under header type=backoffice, to the right of the SideBar (the BackOfficePage story).
  • On the guest website or app for browsing stays: use Card type listing.
    Instead: Card
  • For two or three facts about one thing, such as in a dialog: use detail rows.
    The Figma page names no alternative.
  • Put long text or paragraphs in a cell: link to a detail page instead.
    The Figma page names no alternative.

Open item: no alternative named for items 2 and 3. Those items have an empty instead in Table.intent.json. The Figma page names no Horizon component for them: “use detail rows” and “link to a detail page instead” are not components of this system. This page shows “The Figma page names no alternative” and does not fill the gap. The release review also records that some accessibility facts bundle a second claim at another line; each is true and implemented.

From the release review, under “Warnings”, as written:

Intent file. Two dont_use_when entries with no alternative (C2); C3 line citations as noted. Owner: component-intent. Not edited.

Figma draws none of these, and Table.tsx and Table.css at b9ffb76 build them anyway. The designer still has to confirm them.

From the release review, under “Warnings”, as written:

Added by the engineer, not in Figma: descending sort arrow, keyboard focus ring, disabled Previous / Next (transparent background although –color-state-disabled-bg exists). Named in “Not ruled”. The designer still has to confirm them.

From the Figma documentation page (usage node 251:353), as written. These items aren’t carried into Table.intent.json, which has no field for them.

  • Keep column headers short and sentence case, and let people sort by the most useful column, usually the first.
  • Use tag tones the same way everywhere: success for live or on file, error for expired or missing, neutral for past or draft.
  • Show how many records there are in the footer, such as “Showing 1 to 5 of 7 seasons”, and keep Previous and Next in the same place.
Property Value What it is for
tone success Live, On file (the success tag tone).
tone neutral Past, Draft (the neutral tag tone).
tone error Expired, Missing (the error tag tone).
tone warning Expiring soon (the warning tag tone).
tone info Upcoming (the info tag tone).

Four of the five tones have no pixel spec in Figma. The table in Figma draws only the success tag. The tag set (248:18) holds all five tones as 38x22 swatches. neutral, error, warning and info have no further colour or pixel specification in the Figma Table frame; QA passed them on geometry and token consistency.

From the release review, under “Warnings”, as written:

Neutral, error, warning and info tag colours have no pixel spec in the Figma Table frame; QA passed them on geometry and token consistency.

  • A native <table> with an accessible name from tableLabel (default “Data table”), so a screen reader announces rows and columns. src/components/Table/Table.tsx:253
  • Column headers are <th scope=“col”> and the primary cell of each row is <th scope=“row”>, so each cell is read with its column and row name. src/components/Table/Table.tsx:277
  • A sortable header is a native <button> and its <th> carries aria-sort (none, ascending or descending); the arrow is hidden from assistive technology. src/components/Table/Table.tsx:279
  • The row and header checkboxes are Horizon’s Checkbox, a native input, labelled “Select <row name>” and “Select all rows”; selection is the checked state, not colour alone. src/components/Table/Table.tsx:266
  • Action cells are Horizon’s Link, a native <a href>, and Previous / Next are Horizon’s Button, native <button> elements that take the disabled attribute. src/components/Table/Table.tsx:353
  • The footer summary is an aria-live=“polite” region and Previous / Next sit in a <nav> named “Pagination”. src/components/Table/Table.tsx:350
  • A keyboard focus ring (color/border/focus, 2px) is drawn on the checkboxes, the sort button and the action links. src/components/Table/Table.css:189

They are open items, not waived.

Open accessibility problem: the warning tag’s text contrast is about 2:1. The warning tone sets --color-status-warning text on --color-status-warning-bg (Table.css:138-141), 11px text. In the token build at b9ffb76 that is #f2a927 on #fff9e8, which is 1.91:1 by the WCAG formula, below the 4.5:1 minimum of WCAG 2.1 success criterion 1.4.3 for text this size. In the dark token values it is #f8be4c on #654208, 5.33:1. The ruling’s “Not ruled” line names it, so it is not waived. Figma’s Table frame draws no warning tag, so there is no design to compare it with. It is owned by the designer or the token owner, and changing the colour would touch other components.

From the release review, under “Warnings”, as written:

Warning tag contrast about 2:1. –color-status-warning text on –color-status-warning-bg (Table.css:138-141) is about 2:1 for 11px text, below WCAG AA. Named in the ruling’s “Not ruled”, so not waived. Figma’s Table frame draws no warning or info tag. Owner: the designer or token owner. Changing the colour would touch other components.

Not in Figma: the keyboard focus ring. The ring (Table.css:188-193: a 2px --color-border-focus outline at a 2px offset) was added by the engineer. The last fact above says it exists. Its contrast was not measured by the review, and the designer has not confirmed it.

Dark theme: not verified. Tokens do not switch under prefers-color-scheme: dark, so the dark values on the Code tab are what the token build declares, and the review did not verify them on a rendered table. The review calls this library-wide, not a Table finding.

From the release review, under “Warnings”, as written:

Dark theme unverified. Tokens do not switch under prefers-color-scheme: dark (QA note 5). Library-wide, not a Table finding.

Not tested. Real Tab order, the focus ring on screen, real hover, screen-reader output and the dark theme were not exercised. The facts above cite the code that should produce them; they are not evidence of the behaviour.

From the release review, under “Not checked”, as written:

No browser or real input: G1 is evidenced by HTTP 200, not my own render. Tab order, the focus ring on screen, real hover, screen-reader output and dark theme were not exercised here. QA’s “Still not tested” stands: BackOfficePage layout beside SideBar / Header, narrow viewport, focus ring on Previous / Next, the pagination group’s alignment and 8px gap.

The stories compose Table with: SideBar, Header.

From the code. Table.tsx is built from Checkbox (Table.tsx:5, Table.tsx:264), Link (Table.tsx:6, Table.tsx:181), Button (Table.tsx:4, Table.tsx:354), and the registry’s Composes column records all three: Checkbox for the row and header checkboxes, Link for the action cells, Button for Previous and Next. pairs_with lists SideBar, Header, which is a pairing and not a part: the BackOfficePage story places <SideBar /> on the left and <Header type="backoffice"> above the table (Table.stories.tsx:146).

From Versioning (VERSIONING.md at b9ffb76):

0.3.0 adds six components on top of 0.2.1: Calendar, Card, Form, Modal, SideBar and Table. It contains twenty-three components, each exported from the package root with its props type: Avatar, Breadcrumbs, Button, ButtonGroup, Calendar, Card, Checkbox, Chip, Dropdown, File, Form, Header, Image, Link, Logo, Modal, ProgressBar, RadioCard, SearchBar, SideBar, Stepper, Table, Toggle. Textfield is exported from the package root as well, with TextfieldProps and TextfieldState, and is public like the others (see decisions.md, 2026-10-07, Textfield). It commits you to their props, prop values and defaults, their hz- class names, the tokens in tokens.css and the three entry points (., ./styles.css, ./tokens.css). Everything in 0.3.0 beyond 0.2.1 is an addition: nothing from 0.2.1 was changed, removed or renamed. A change that breaks any of these on 0.x bumps the version to 0.4.0.

Two things about this release are worth knowing:

  • Form, Modal and Table each passed release review with their literal sizes covered by a ruling in decisions.md (Card, SideBar and Calendar have their own), because no size tokens exist for them. Those literals are accepted until the designer adds matching tokens, so a later change to use tokens at the same rendered sizes would be a patch, not a breaking change.
  • Dark theme is not verified for Table, and its warning tag has low contrast. The Table docs page says so. Neither is a breaking-change risk, but a fix that changes a token’s value is a patch and is listed in the changelog.