Skip to content

SideBar

ReleasedShipped in 0.3.0StorybookFigma canvas 57:1651Source
  • On every back office page, fixed on the left at full height, with header type=backoffice to its right.
  • Mark the page you are on as active, and only that one: the app currently always marks Dashboard active, which needs fixing.
  • Keep the item order the same on every page, so people find things by position.

3 more lines in use_when in src/components/SideBar/SideBar.intent.json (items 4 to 6) are Figma’s Best Practice lines, word for word. They are listed once, under “Best practice” below.

  • On the left of a back office page, with header type=backoffice to its right (the BackOfficePage story).
  • On the guest website or app: use header type=web or type=app instead.
    Instead: Header
  • For actions such as “Export” or “Add rate”: put them in the page, under the title.
    The Figma page names no alternative.
  • For more than 12 items: group them, or move rare ones into Settings.
    The Figma page names no alternative.

Open item: no alternative named for items 2 and 3. Those items have an empty instead in SideBar.intent.json. The Figma page names no alternative: it says “put them in the page, under the title” and “group them, or move rare ones into Settings”, and neither names a Horizon component. This page shows “The Figma page names no alternative” and does not fill the gap. Item 3 also says “group them”, but SideBar has no group or submenu (see below).

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

dont_use_when[1] and [2] have empty instead (C2). Figma gives no named component for either; the real alternatives are “put them in the page, under the title” and “group them, or move rare ones into Settings”, neither a component. Owner: component-intent.

Item 2 is Figma’s own wording, and it reads as a bug note about the app, not a design rule. It is shown above verbatim: “Mark the page you are on as active, and only that one: the app currently always marks Dashboard active, which needs fixing.” The rule in it is to mark the page you are on, and only that one. The clause after the colon describes a fault in an application, not in this component, and this page does not rewrite it. The decisions ruling lists it under “Not ruled” as a bug note. In the code, current is a boolean on each item (SideBar.tsx:14); nothing in SideBar.tsx checks that only one item is current.

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

use_when[1] (“Mark the page you are on as active, and only that one: the app currently always marks Dashboard active, which needs fixing.”) carries a bug note about the app inside a design rule. The ruling lists it as a bug note, not a design rule. Owner: the designer or component-intent, to reword; not edited here.

From the 2026-10-07 ruling in decisions.md, under “Not ruled”, as written:

The Usage line “the app currently always marks Dashboard active, which needs fixing”, which reads as a bug note and not a design rule.

Placement repeats the first use line. placement in SideBar.intent.json has one entry, which restates item 1 of use_when with the story named. It adds no separate placement rule.

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

placement has one entry, which repeats the first use_when.

Figma draws none of these, and SideBar.tsx and SideBar.css at b9ffb76 build none of them:

  • a collapse state or toggle
  • a small-screen layout
  • arrow-key navigation (Tab, Shift+Tab and Enter work because each item is a native link)
  • groups or submenus (the Figma Usage line says to group when there are more than 12 items)
  • disabled items (the Figma best practice says to hide items the role cannot open instead)
  • a skip link
  • a per-item destination: href is optional and falls back to "#" (SideBar.tsx:76), so an item with no href goes nowhere
  • the cap of 12 items: any length of items is rendered
  • the rule that only one item is active: every item with current set is marked

The 2026-10-07 ruling names the first six as “Anything Figma does not draw and the component does not build” and leaves them to a human. It reads, as written: “Anything Figma does not draw and the component does not build: a collapse state, small-screen layout, arrow-key navigation, groups, disabled items, a skip link.”

From the Figma documentation page (usage node 247:520), as written. SideBar.intent.json carries these same lines as items 4 to 6 of use_when, word for word; they are listed here once.

  • Use short labels of one to three words, such as “Team and roles”.
  • Show which organisation and how many properties the admin is looking at in the footer.
  • Hide items the person’s role can’t open, instead of showing them disabled.
Property Value What it is for
state default Figma doesn’t say.
state hover lighter
state active the current page

Open item: nothing for default. variant_intent.default is empty in SideBar.intent.json because Figma publishes no description of the default item. hover and active say what they look like (“lighter”, “the current page”), not when to choose them. This page does not write one.

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

variant_intent.default is “” (a recorded Figma gap: Figma publishes no description of the default item). hover is “lighter” and active is “the current page”; neither says when to choose it, only what it looks like. Owner: component-intent.

active is not a value of the code’s union. SideBarItemState is "default" \| "hover" (SideBar.tsx:6). Figma’s state=active is carried by the boolean current on an item (SideBar.tsx:14), which also sets aria-current="page". variant_intent has the key active because Figma publishes that state, so the table above has one key more than the union. The review records this as a judgement call a human can overrule.

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

C5 strict reading (see C5): active is one key beyond the union SideBarItemState.

They are open items, not waived.

Open accessibility problem: the focus ring has low contrast. The keyboard focus ring (SideBar.css:86-89: a 2px --color-border-focus outline, drawn inside the row) is not in Figma. The engineer added it. It is true that it exists, and the last fact above says so, but it does not meet the 3:1 minimum of WCAG 2.1 success criterion 1.4.11 on the two surfaces a focused item sits on. The reviewer computed 2.16:1 on the panel and 1.60:1 on the active fill, and the figures were checked again for this page against the built token values (#1d44ba on #161925, #1d44ba on #162d69); only on the hover fill does it reach 7.76:1. This is not a feature and no ruling covers it: the ruling’s “Not ruled” line says its contrast was never checked. It is owned first by the designer, for a ring colour that works on the inverse panel, and then by the engineer.

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

Focus ring contrast is low (computed, not browser-tested). SideBar.css:87-88 draws –color-border-focus (#1d44ba) at 2px. From the built token values: 2.16:1 against the panel (#161925) and 1.60:1 against the active fill (#162d69), both under the 3:1 WCAG 2.1 SC 1.4.11 minimum for a focus indicator; it reaches 7.76:1 only on the hover fill. The ring is not in Figma (the engineer added it) and the ruling’s “Not ruled” line records that its contrast was never checked, so no ruling covers it. It is not a gate in this skill, so it is a warning. Owner: the designer, for a ring colour that works on the inverse panel, then the engineer.

Not tested. Real Tab order, a real mouse hover, screen-reader output and the dark theme were never tested by anyone: QA had no real input, and the release review had no browser or input device. The facts above cite the code that should produce them; they are not evidence of the behaviour.

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

QA gaps, not credited. QA did not test real Tab order, the focus ring’s contrast, real mouse hover, screen-reader output or the dark theme (no real input available). None is claimed as passed. This review could not run them either (no browser, no input device). Marked Not checked.

The stories compose SideBar with: Header.

From the code. SideBar.tsx is built from Logo and Link: it imports them (SideBar.tsx:4, SideBar.tsx:3), renders <Logo type="mark" alt=""> in the header (SideBar.tsx:62) and one <Link> per item (SideBar.tsx:69), and the registry’s Composes column records both. pairs_with lists Header, which is a pairing and not a part: the BackOfficePage story places <Header type="backoffice"> to the right of the sidebar (SideBar.stories.tsx:101).

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

Composes verified in code. The board lists Logo and Link. SideBar.tsx:3-4 imports Link and Logo; :62 renders Logo type=“mark”, :69 renders Link per item. Both match the board; nothing else is imported from src/components.

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

pairs_with: [“Header”] is supported by the BackOfficePage story (SideBar.stories.tsx:95-105, Header type=“backoffice”) and by Header.intent.json naming the Sidebar. Logo and Link, which SideBar composes, are not in pairs_with; composed parts are not pairings, so this is not a finding.

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.