feat: Lean fact-tab buttons (icon above label) and an orange and gray chart palette
Back to our planProblem
In plain words: on the 2027 budget post the four tab buttons carry long, repeated wording, and the charts are mostly green. A neighbor should see short buttons and a breakdown of where the money goes in the site's orange and gray.
- The tab buttons show the icon beside a long label. They should show the icon on its own line with a short label under it, so four buttons stay lean and aligned on a phone.
- Charts use one categorical palette (green, blue, orange, purple, gold, pink). There is no way to draw a chart in the site's orange and gray.
- The post's tab wording is stored in the CMS, so shortening it is an editor change that follows the layout change.
Summary of the owner's request (2026-11-07, Claude conversation, text): put the department breakdown (percent and dollars) at the bottom of the relevant tabs in orange and gray, shorten the tab labels, and put the icon on its own line above the text.
Proposed fix
- Fact tab buttons: the icon on its own line, the label under it, the figure and certainty as today; rows stay shared so parts line up.
- A chart palette option that draws in orange and neutral grays from theme tokens (light and dark), used by the "per hundred" grid and the bar chart; the existing palette stays the default.
- In the CMS, after deploy: shorter labels, the leftover wording moved into each tab's content, and the breakdown charts added below the existing content of the day-to-day and big-project tabs.
Acceptance criteria
- Not done: Tab buttons show the icon alone on the first line and a short label below; nothing overflows or wraps badly at 320, 360, 375, 600 and 1000 px, in light and dark.
- Not done: The label and certainty stay available to screen readers; keyboard use is unchanged.
- Not done: A chart can choose the orange and gray palette; every color comes from a theme token and passes contrast in light and dark; the default palette is unchanged.
- Not done: Tests first for the new layout and palette; gallery entry and component-set row updated; the knowledge note updated in the same PR.
- Not done: The post's figures are the City's published ones, labeled as the Mayor's proposal and unofficial.
Files likely touched
src/platform/richtext/editorial/FactCard.tsx, src/platform/ui/chart/*, src/platform/lib/chart/spec.ts, src/platform/themes/default/theme.css, docs/ui/component-set.md
Open questions
None needed from the owner; the palette is a routine design choice.
Generated by Claude Code, opens in a new tab