Codebook sidebar: the pending count, your rule and thirteen styles

For discussion. Framed panes are the product: the Codebook lens sidebar captured from a running serve --dev (24 Nov 2026, a private trial run renamed “Demo study”) at shipped CSS and its captured width, 240 px. Only the count's style changes from frame to frame. One row is added to every frame so each state is on screen: Nielsen, switched off, with 128 waiting. The real counts are UXR 9 (the selected row) and Laws of UX 5. Hatched blocks are commentary. Each frame's bar prints the count's contrast, live, against whatever is behind it (the row, the selection, the sidebar); under 4.5:1 is in red. Generated by codebook-pending-count.gen.py; regenerate, don't edit.

Commentary · what the count is

The number of a codebook's proposals still waiting for review (D10): its tentative tags. Shipped as a grey pill in the badge colours, micro size, regular weight, between the title and the switch (organisms/codebook-v2.css:96, CodebookV2Sidebar.tsx:199). It has no tooltip and no spoken label: VoiceOver reads a stray “9” after the codebook's name. Every frame but the first adds both, from the shipped key codebook.tentativeCount (“9 tentative”, 21 locales); hover a count to see it. The style is the question here; the label is owed whichever style wins.

1 · Your rule, to play with

Shippedgrey pill, whatever the row's state
Your ruleon: outlined pill · off: the same at half opacity, selected or not · selected and on: white on accent

Mockup controls

Click a row to select it; click its switch to turn it on or off. Set a count to 0 to see the row with nothing waiting. Emotional signals and the project's own tags never have proposals.
Commentary · your rule (owner, 24 Nov)

On: the outlined pill in ink. Off: the same pill at the switched-off opacity (--bn-opacity-off, 0.5, the card's own knock-back). Selected and on (the codebook whose page is open): white on accent, regular weight. Selected and off: the off pill, as any switched-off row (owner, 24 Nov). Zero: nothing shows. Nothing jumps (owner, 24 Nov): every state draws the same box, the switch's 15 px height and radius, at least 15 px wide, regular weight, centred on the switch; only fill, figure colour and opacity change. And the count sits in a slot sized for three figures, so the title keeps one width from 1 to 999, and at zero too while the empty slot is kept (measured: 142.1 px for every count on Nielsen's row, the row 67.9 px throughout). The controls also flip the off state to the theme's own muting rule (muted ink, not opacity: theme/gotchas.md, “Mute readable text with a colour token, never with opacity”), which clears 4.5:1 except on the selected row in light mode (4.2:1), and let the title have the slot's space back at zero. Both frames share one state: click a row to select it, click a switch to turn it on or off, set the counts on the right; Tab and Space work too. Read the bars: white on accent clears 4.5:1 only in Edo light (6.9:1); default light is 4.0:1, Edo dark 2.9:1, default dark 3.7:1. The switched-off pill at half opacity is under 4.5:1 in all four: 3.1:1 Edo light, 4.3:1 Edo dark, 3.3:1 default light, 4.3:1 default dark; selected and off, on the selection's darker capsule, 2.9 to 4.0:1 (the on pill is 11:1 or more everywhere). WCAG excuses text in a disabled control, but a switched-off row is still a live link to its page, so the excuse probably does not cover it. Measured 24 Nov at the Mac scale, micro size.

2 · Thirteen styles, side by side

Shippedgrey pill (badge colours), micro, regular weight
Bare, mutedno shape; muted ink, regular
Bare, muted, boldno shape; muted ink, emphasis weight
Bare, muted; ink when selectedno shape; muted ink, body ink on the selected row
Bare, inkno shape; body ink, regular
Bare, ink, boldno shape; body ink, emphasis weight
Pill, boldthe shipped pill at emphasis weight
Pill, outlinedno fill; a hairline ring in the hover border colour
White on accentaccent circle, white figures, emphasis weight
White on accent, regularaccent circle, white figures, regular
White on mutedmuted-ink circle, white figures, emphasis weight
Invertedbody-ink circle, background-colour figures, emphasis weight
Accent on pale accentaccent figures on a 14% accent tint, emphasis weight
Commentary · what to look for (measured 24 Nov, Mac scale, micro size)

The shipped pill disappears on the selected row. Its fill is the badge background, and the selected row's capsule is nearly the same colour: #f3f4f6 on #efefef in the default palette, #e8dfc9 on #e6ddc9 in Edo, the Mac's default. The figure stays readable; the pill's shape does not, so the selected codebook's count reads as a bare number and every other row's as a pill.

Contrast, the lowest of the three rows, against 4.5:1 (text this small has no large-text allowance):

styleEdo lightEdo darkdefault lightdefault dark
shipped pill, bold pill, outlined pill8.8+7.3+9.0+9.6+
bare, ink (regular or bold)11.811.315.111.4
bare, muted (regular or bold)4.2 selected row5.54.2 selected row5.6
bare, muted; ink when selected5.16.34.66.3
white on accent6.92.94.03.7
white on muted5.72.64.82.5
inverted15.413.817.413.8
accent on pale accent4.24.12.93.3

Muted ink is what the codebook page already uses for a tentative count (the tag rows: accepted in ink, tentative-only in muted, TagRow.tsx), so a muted bare number says the same thing in the same colour in both places, but it fails on the selected row in light mode, where the capsule darkens what is behind it. Recent macOS sidebars (Mail's unread counts, for one) draw a plain grey figure, not a capsule: worth a glance at your own Mail. White on a coloured circle is the notification badge: it says “unread, act now”, louder than proposals need (they wait, nothing is lost), and it fails in three of four schemes. Bold helps a bare number hold its own beside the switch at micro size; try the caption size in the bar too.

My pick: bare, muted; ink when selected, with the label. It is the page's tentative colour wherever it passes, the selected row's ink where muted would not, never a shape that vanishes, and not needy. If one colour everywhere matters more than matching the page, bare, ink passes in every scheme.