Skip to content

fix(core): the fixture looks keep checkboxes small and show field states - #692

Merged
allisonmahmood merged 1 commit into
mainfrom
fix/588-fixture-looks-field-states
Oct 15, 2026
Merged

allisonmahmood merged 1 commit into
mainfrom
fix/588-fixture-looks-field-states

Conversation

@allisonmahmood

@allisonmahmood allisonmahmood commented Oct 15, 2026 •

Copy link
Copy Markdown
Owner

On the patchy look preview specimen, the Linear and Duolingo fixture looks stretched the form's checkbox to full width, with its label wrapped beneath it. Duolingo's checkbox showed no keyboard focus. None of the three looks styled invalid or disabled fields, and Linear and finance restyled a disabled button on hover. The look-capture reference warned a capture about none of this, and it called a folder ready as soon as publish would accept it.

Fix

  • Checkboxes and radios. Linear and Duolingo scope their text-field rule to input:not([type="checkbox"], [type="radio"]) and give checkboxes and radios accent-color. Finance already did.
  • Field states. All three looks add [aria-invalid="true"] rules (a danger border) and :disabled rules for inputs, selects and textareas, after their base rules.
  • Duolingo's focus. Its :focus rule keeps the blue border but drops outline: none, so its :focus-visible ring shows on every control, checkboxes included. The invalid rule comes after the focus rule, so a focused invalid field stays red.
  • Disabled buttons. Linear and finance guard button hover with :not(:disabled).
  • Capture reference. It now lists textareas, checkboxes and radios among the element styles. A new States bullet covers the five points from the issue. Empty failures now means "publish will accept it", followed by a check of the States row and a Tab through the form.
  • Test. The per-fixture browser case gains the issue's four checks (invalid and disabled fields differ from resting; an invalid field keeps its border when tabbed to; the checkbox is narrower than its label text and on the same line; Tab from Reason lands on the checkbox and draws a ring) and one more: hovering a disabled button changes nothing.

Tested

  • The extended spec, against a fresh CLI build with main's fixtures: Linear, Duolingo and finance fail, Patchy passes. With the fix, all six cases pass. I then put each bug back one at a time, and each one fails its own assertion:
    • unscoped text-field rule: the checkbox geometry check;
    • outline: none on Duolingo's :focus: the checkbox ring check;
    • focus rule after the invalid rule: the invalid border check;
    • unguarded hover in Linear or finance: the hover check.
  • checkLook accepts all four looks (packages/core/src/look.test.ts).
  • By hand, on pnpm dev up team, the environment's installed patchy look preview on each fixed look (failures: []), screenshotted with Playwright:
    • The checkbox is 13×13 in Linear and Duolingo (456×13 and 432×48 on main) and 18×18 in finance. It sits beside "Tell the budget owner" and draws the look's focus ring on Tab.
    • Tabbed to, the invalid field keeps its danger border, with the focus ring around it.
    • A disabled field is dimmed in Linear, grey-filled in Duolingo and grey-framed in finance.
    • A hovered disabled button looks as it does at rest.
    • Ada published all three through patchy look publish (revisions 1–3). The company-look preview the instance served back carried the fixed CSS. pnpm dev down afterwards.
  • Reviewed by GPT 6.1 Sol (xhigh): it worked through each look's cascade, the test's assertions and the reference, and found nothing to fix.

Surfaces

  • Served pages: the look fixtures under packages/core/fixtures/looks. Core's look test and the CLI, SDK and Companies tests read them by value. pnpm seed:dev reads only the accept and reject HTML fixtures, so it is unaffected.
  • The CLI: only the global skill's look-capture reference changed. SKILL.md didn't, so skills-lock.json keeps its hash.
  • Not applicable: the wire contract, the dev loop, vocabulary, migrations, company resources, reverse states and the repo layout.
  • The Patchy look, the specimen markup and checkLook are unchanged.

Left out

  • Duolingo's brief still carries its input[aria-invalid="true"] recipe. Dropping it was optional; it is now redundant but harmless.
  • I didn't add triage's :focus:not(:focus-visible) { outline: none } to Duolingo. Browser UA stylesheets draw focus rings only on :focus-visible, so it would do nothing.

Closes #588

Made by Claude Opus 5.5 in Claude Code, running in T3 Code.

@github-actions github-actions Bot added area:ci CI, shared testing infrastructure, development scripts and tooling area:cli Touches the cli area area:core Touches the core area area:docs Touches the docs area size:m 100-500 changed lines labels Oct 15, 2026
Linear and Duolingo styled checkboxes as full-width text fields, Duolingo
hid keyboard focus on them, none of the three styled invalid or disabled
fields, and Linear and finance restyled a disabled button on hover. The
look-capture reference now tells a capture how to avoid each of these and
to check the specimen's states before showing the look.

Closes #588

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@allisonmahmood
allisonmahmood force-pushed the fix/588-fixture-looks-field-states branch from 440c258 to dc2350b Compare October 15, 2026 20:15
@allisonmahmood
allisonmahmood merged commit 6ba8b45 into main Oct 15, 2026
13 checks passed
@allisonmahmood
allisonmahmood deleted the fix/588-fixture-looks-field-states branch October 15, 2026 20:24
allisonmahmood added a commit that referenced this pull request Oct 16, 2026
…u when they fail (#720)

Release 13's What's new entry, written from `c9b8fc4`, ahead of
deploying it. `patchy` and `CURRENT_RELEASE` move to `0.13.0`, so CLIs
and patch repos installed before this deploy are told to upgrade.

| Change | PRs |
| --- | --- |
| New: Home puts the patches you use first | #713, #716, #719 |
| New: Every patch in one list | #715 |
| Improved: Each patch's page leads with Open | #717 |
| New: See when your tools are failing | #718 |
| Fixed: Everyone has a name | #687 |
| Improved: Your company's look is easier to get right | #697, #696,
#703, #688 |
| Improved: Forms follow your look's error states | #691, #692 |
| Improved: Clearer answers when a publish goes wrong | #686, #685, #689
|
| Fixed: Your agent's Patchy commands are steadier | #695, #704, #680,
#681 |
| Behind the scenes: stricter checks on static pages and tools' database
requests; malformed requests are logged | #682, #693, #683 |
| Behind the scenes: usage numbers count every publish, sharing change
and restore | #698, #699, #700, #690 |
| Test and tooling only, no line | #705, #702, #701, #694, #684, #607 |

Made by Claude Opus 5.5 in Claude Code, running in T3 Code.

Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:ci CI, shared testing infrastructure, development scripts and tooling area:cli Touches the cli area area:core Touches the core area area:docs Touches the docs area size:m 100-500 changed lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(core): the fixture looks mishandle checkboxes and field states, and the capture reference says nothing about them

1 participant