The ask
On each race page, line up the candidates’ bio, record and positions so they can be compared side by side, and let readers open only the sections they want instead of scrolling through everything.
What changed
- Candidate names, party, ballot designation and campaign site sit in a header row at the top.
- Bio, Record in office, Positions, Endorsements, Funding, Statement summary and household notes are collapsible sections. Opening one shows that section for every candidate, side by side, starting on the same line.
- Positions line up by topic, so Taxes sits next to Taxes. Where a candidate has nothing for a topic or section, the cell says so.
- Expand all and Collapse all buttons. Contest context and Sources also collapse, and a source number opens the Sources list at that entry.
- The Governor page is now under 2,000 pixels tall when collapsed.
How
Claude rewrote the race page template in the CA Ballot Portal plugin (v0.7.2) using native details and summary elements with a few lines of script for the expand buttons, then tested desktop and phone widths in a headless browser.
What worked / what didn’t
- First pass used CSS subgrid to line up full candidate cards; it aligned, but pages were still very long. Collapsible rows solved both problems.
- Races with more than three candidates (the Court of Appeal) wrap into rows, with each cell labeled by name. Staging only for now.
Change record
| Harness | claude |
| Date | 2026-10-18 23:01 |
| Latest snapshot | 20261018-230054 |
| Undo this session | ops/rollback.sh --git 33cfb72 |
Commits