Repository navigation
docs(architecture): form controls get a border role held at 3:1 - #11631
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
|
/approve-spec aecbafc |
There was a problem hiding this comment.
Requesting changes: the approved direction, a --color-border-control role held at 3:1 for field shells and checkbox and radio boxes, stands, but the record needs two edits first.
- INV13 binds only Core's defaults and the theme templates, so themes built from a colour scale (
expandColorScale()), which today hold their form-control edge at 3:1 against their own surface (4.38:1 light and 3.82:1 dark undercontrast: 'high'), get no generated--color-border-control, and DEC-2's "darkens only the controls" does not hold for them; state what those themes get and scope DEC-2's sentence. - The INV13 verification row in
docs/architecture/theme-tokens.mdstops after Evidence, so add its failure signal, for example "--color-border-controlfalls below 3:1 against the surface or the page body in light or dark mode".
Also worth a look: add INV13 to the record's tokens review-applicability list, and name the themes INV13 binds the way INV11 does. A new commit needs a fresh /approve-spec for its head.
Claims and files checked
- Form controls get their own border role held at 3:1 against the surface and the page body in light and dark: verified (INV13, DEC-2).
- Today's field edge is 1.5:1 in default light and 1.9:1 in dark: verified against the default surface (1.51:1 and 1.93:1 for
--color-border-emphasized, which field shells and checkbox and radio boxes paint). - Cards, dividers and everything else keep their lighter edge: verified for Core's defaults and the theme templates; does not hold for colour-scale themes (first finding).
- The record gains INV13 and DEC-2, and INV10's role list names
control: verified. - One new public theme token,
--color-border-control: verified as the token the record decides; no package surface changes in this pull request. - Records only, no code or changeset, with the build to follow separately: verified (one record file changed).
- Writing rubric R1 to R7: verified (no narration, research, change references, open questions or project status; two one-line rejected alternatives inside DEC-2).
docs/architecture/theme-tokens.md: the two findings above and two non-blocking notes.
|
/approve-spec 656cbe2 |
There was a problem hiding this comment.
Requesting changes: the approved direction, a --color-border-control role held at 3:1 for field shells and checkbox and radio boxes, stands, and the colour-scale and failure-signal gaps from the last round are filled, but the new colour-scale sentences need one correction.
- INV13 and DEC-2 say a theme built from a colour scale already holds its control edge at 3:1 against its surface and body, but the generator bumps that edge against the surface only, so in light mode at standard contrast it is 2.71:1 to 2.81:1 against the page body; following DEC-2 ("its controls keep the edge they have") would break INV13, so state that the generated
--color-border-controlmeets 3:1 against both surface and body (keeping the high-contrast start) and reword DEC-2 to match, or narrow INV13 and its verification row if the surface alone is meant.
Also worth a look: cite architecture:theme-authoring-contract for the colour-scale rule (this record says it does not own generated scales), add INV13 to the record's tokens review-applicability list, and name the themes INV13 binds the way INV11 does. A new commit needs a fresh /approve-spec for its head.
Claims and files checked
- Form controls get their own border role held at 3:1 against the surface and the page body in light and dark: verified (INV13, DEC-2).
- Today's field edge is 1.5:1 in default light and 1.9:1 in dark: verified against the default surface (1.51:1 and 1.93:1).
- Field shells and checkbox and radio boxes take the new edge, while cards, dividers and everything else keep the lighter one: verified (DEC-2).
- The record gains INV13 and DEC-2, and INV10's role list names
control: verified. - One new public theme token,
--color-border-control: verified as the token the record decides; no package surface changes in this pull request. - Records only, no code or changeset, with the build in its own pull request: verified for this pull request (one record file changed).
- Writing rubric R1 to R7: verified (no narration, research, change references, open questions or project status; two one-line rejected alternatives inside DEC-2).
docs/architecture/theme-tokens.md: the finding above and three non-blocking notes.
PR Analysis Report🔎 Preview ·
|
…at 3:1 against surface and body
|
/approve-spec 5b9d8cf |
There was a problem hiding this comment.
Requesting changes: the approved direction, a --color-border-control role held at 3:1 for field shells and checkbox and radio boxes, stands, and the colour-scale sentences now agree with each other, but one sentence in DEC-2 still needs a fix.
- Miss: DEC-2 says cards, dividers and every other surface keep the lighter
--color-border-emphasizededge, but the Card and Divider component records give the default Card and the defaultsubtleDivider a--color-borderedge, so the records would disagree; "keep their own lighter edge (--color-borderor--color-border-emphasized)" fixes it.
Also worth a look: cite architecture:theme-authoring-contract for the colour-scale rule, add INV13 to the record's tokens review-applicability list, and name the themes INV13 binds the way INV11 does. A new commit needs a fresh /approve-spec for its head.
Claims and files checked
- Form controls get their own border role held at 3:1 against the surface and the page body in light and dark: verified (INV13, DEC-2).
- Today's control edge is 1.5:1 in default light and 1.9:1 in dark: verified against the default surface (1.51:1 and 1.93:1).
- Field shells and checkbox and radio boxes take the new edge, while cards, dividers and everything else keep their lighter edge: verified as the description states it; DEC-2's wording names the wrong token for cards and dividers (the finding above).
- The record gains INV13 and DEC-2, and INV10's role list names
control: verified. - One new public theme token,
--color-border-control: verified as the token the record decides; no package surface changes in this pull request. - Records only, no code or changeset, with the build in its own pull request: verified for this pull request (one record file changed).
- Writing rubric R1 to R7: verified (no narration, research, change references, open questions or project status; two one-line rejected alternatives inside DEC-2).
docs/architecture/theme-tokens.md: the finding above and four non-blocking notes.
|
/approve-spec d77a550 |
|
Decision: D-20261114-022 Records the owner's decision of 2026-11-13 that form controls get their own border role, --color-border-control, held at 3:1 against the surface and the page body in Core, every theme template and colour-scale themes; other borders keep their own lighter role. Records only; the token and its use follow in their own pull request. |
There was a problem hiding this comment.
Approved pending CI: the --color-border-control role, held at 3:1 against the surface and the page body for field shells and checkbox and radio boxes, is recorded with an engineering owner's approval for this head, and it agrees with the Card and Divider records on their edges. Lint, typecheck, build and docsite-test passed on this head; the test suite was still running, and the merge guard waits for it.
Optional follow-ups, none blocking:
- INV13's and DEC-2's "other borders keep their own lighter roles (
--color-borderor--color-border-emphasized)" leaves out status borders, the checked box's accent edge and SelectableCard's selection border; "such as--color-border,--color-border-emphasized, a status border (INV11) or a selection edge" covers them. - The INV13 verification row names a
contrast.test.tscase for the control edge that the file does not have at this head; an "Evidence gap:" note on the row keeps it honest until the build adds the test. - Cite
architecture:theme-authoring-contractfor the colour-scale rule, addINV13to the record'stokensreview-applicability list, and name the bound themes as INV11 does ("Astryx's first-party themes"); the build also has to amend the Indicator, Y2K and Swift TextInput records that still name the emphasized border for these controls.
Claims and files checked
- Form controls get their own border role, held at 3:1 against the surface and the page body in light and dark: verified (INV13, DEC-2).
- Today's control edge is about 1.5:1 in default light and 1.9:1 in dark: verified against the default surface (1.51:1 and 1.93:1).
- Field shells and checkbox and radio boxes take the new edge, while cards, dividers and everything else keep their lighter edge: verified for cards and dividers, matching the Card and Divider records; status, checked and selection edges sit outside the stated list (first follow-up above).
- The record gains INV13 and DEC-2, and INV10's role list names
control: verified. - One new public theme token,
--color-border-control: verified as the token the record decides; no package surface changes in this pull request. - Records only, no code and no changeset, with the build in its own pull request: verified for this pull request (one record file changed).
- Writing rubric R1 to R7: verified (no narration, research, change references, open questions or project status; two one-line rejected alternatives inside DEC-2; the owner's wording quoted).
docs/architecture/theme-tokens.md: no blocking finding; the follow-ups above.
| (`spec:AST-020` FR1; WCAG 2.2 SC 1.4.11). Other borders keep their own | ||
| lighter roles (`--color-border` or `--color-border-emphasized`) (DEC-2). |
There was a problem hiding this comment.
Non-blocking: read literally, this lists every other border, but status borders are neither of these. INV11 holds --color-border-<status> at 3:1 or more, and a field shell in a warning, error or success state paints it today (packages/core/src/Field/inputStyles.stylex.ts:102-122). INV11 still governs them, but a build author has to infer that a field in a status state keeps its status edge. Suggested:
(`spec:AST-020` FR1; WCAG 2.2 SC 1.4.11). Other borders keep their own
roles, such as `--color-border`, `--color-border-emphasized` or a status
border (INV11) (DEC-2).
Records the owner's decision of 2026-11-13 ("New control-border role"): form controls get their own border role,
--color-border-control, held at 3:1 against the surface and the page body in light and dark mode.What changes for people: text fields, selects and other field shells, and checkbox and radio boxes, get an edge people can see (today it is 1.5:1 in default light and 1.9:1 in dark, under the 3:1 WCAG 2.2 SC 1.4.11 asks). Cards, dividers and everything else keep their lighter edge.
Records:
architecture:theme-tokensgains INV13 and DEC-2, and INV10's role list namescontrol. The build (the token default, each theme template's value, and the components that use it) follows in its own pull request.New public API: one theme token,
--color-border-control.Records only: no code, no changeset.
Writing rubric results