Repository navigation
Define contextual non-text contrast review - #7766
rubyycheung wants to merge 8 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
PR Analysis Report🔎 Preview ·
|
There was a problem hiding this comment.
Approval waits on an engineering owner: FR16 and the new spec:AST-008/FR12 sentence add normative WCAG 1.4.11 text to current records, so a maintainer needs to approve them as written in spec:AST-020 or move this cross-theme contrast methodology into a design record, which the knowledge-contracts architecture (INV2) names as its owner. Whichever home is chosen, a few spec-text fixes are needed:
- Require the independent cue that exempts a border to meet 3:1 itself (or at least one identifying cue per component and state), so two faint cues cannot exempt each other.
- Use WCAG's wording for graphics, "parts of graphics required to understand the content", instead of "required to identify ... a meaningful graphic".
- Copy the AST-020 1.4.11 row verbatim into
internal/a11y-spec/src/checklist.ts, as every other row there is. - Drop "in this specification pull request" from AST-020's non-goals.
[Automated review]
ce498ba to
fe34b02
Compare
|
Where we understand contrast comparisons in our tokens we should strive to enforce it through testing rather than rely solely on agentic context checks that can be influenced through prompts. |
There was a problem hiding this comment.
Approval waits on an engineering owner: FR16, its source-map and verification rows, the new accessibility trigger and the spec:AST-008/FR12 sentence add new normative WCAG 1.4.11 text to current records, and the knowledge-contracts architecture (INV2) assigns human contrast methodology to a design record. A maintainer needs to either approve the rule in spec:AST-020 and amend INV2 in this pull request so the two records agree, or move the rule into a docs/design/ record. The earlier spec-text fixes are all in place at this revision, and no other change is required. While deciding, the owner may also want FR16 to name WCAG's other two 1.4.11 exceptions and to scope its evidence list to exempted treatments.
[Automated review]
Summary: Define AST-020 FR16 so non-text contrast review distinguishes necessary visual information from decorative treatment using contextual suppression evidence. Link palette evidence to that authority and mirror the outcome in the reusable accessibility checklist. Test Plan: pnpm check:knowledge pnpm -F @astryxdesign/a11y-spec typecheck pnpm vitest run internal/a11y-spec/src/*.test.ts
…t-contrast; AST-020 and AST-008 link to it
fe34b02 to
86f6f64
Compare
There was a problem hiding this comment.
Approval waits on an engineering owner. design:non-text-contrast is a new draft record whose DR1-DR5 define when WCAG 2.2 1.4.11's 3:1 threshold applies, and the reworded spec:AST-020 1.4.11 row and the new spec:AST-008 FR12 sentence delegate to it. An engineering owner records the decision by commenting /approve-spec <full head SHA> (the author may do so if they are an engineering owner), and the record should move to current with that approval so the two current records do not point at a draft.
Two record fixes are also needed:
docs/specs/AST-020/spec.mdlines 207-213 still link issue #4112 and pull request #4113 and narrate their history, while the description's writing rubric reports R1 and R5 as none for the touched records.docs/specs/AST-008/spec.mdlines 180-182 restate DR5's evidence list although the new record says AST-008 FR12 does not restate it; linking DR5 alone keeps one owner.
While deciding, the owner may want the record to say whether WCAG's user-agent-appearance and essential-presentation exceptions also apply, since only the inactive-component exception is named.
[Automated review]
There was a problem hiding this comment.
Approval waits on an engineering owner: design:non-text-contrast is a new draft record whose DR1-DR5 define when WCAG 2.2 1.4.11's 3:1 threshold applies, and the reworded spec:AST-020 1.4.11 row and the new spec:AST-008 FR12 sentence delegate to it. Because these are accessibility requirements, an engineering owner records the decision by commenting /approve-spec <full head SHA> on this pull request (the author may do so if they are an engineering owner), and the record should move to current with that approval so the two current records do not point at a draft.
Two record fixes are also needed:
docs/specs/AST-020/spec.mdlines 207-209 still link issue #4112 and pull request #4113 as standing content, while the description's writing rubric reports R5 as none for the touched records.docs/specs/AST-008/spec.mdlines 180-182 restate DR5's evidence list although the new record says AST-008 FR12 does not restate it; linking DR5 alone keeps one owner.
For the owner deciding:
- Miss: DR5 names only a visual or manual evidence layer, so contrast for known token pairs, which script tests already check, would not count; allowing a unit check for the measured contrast fits the earlier request to enforce such pairs through tests.
- Only WCAG's inactive-component exception is named; the record could say whether the user-agent-appearance and essential-presentation exceptions also apply.
[Automated review]
…component Adds one sentence to the adjacent-colors definition: a component's own fill counts as adjacent only when it is the interactive area or the cue that identifies the component, and an adornment's decorative fill does not. Co-authored-by: ruby cheung <[email protected]>
There was a problem hiding this comment.
Approval waits on an engineering owner: design:non-text-contrast is a new draft record whose DR1–DR5 and tables, now including the Adjacent colors sentence, define when WCAG 2.2 1.4.11's 3:1 threshold applies, and the reworded spec:AST-020 1.4.11 row and the new spec:AST-008 FR12 sentence delegate to it. Because these are accessibility requirements, an engineering owner records the decision by commenting /approve-spec <full head SHA> on this pull request (the author may do so if they are an engineering owner), and the record should move to current with that approval so the two current records do not point at a draft.
Two record fixes are also needed:
docs/specs/AST-020/spec.mdlines 207-209 still link issue #4112 and pull request #4113 as standing content, while the description's writing rubric reports R5 as none for the touched records.docs/specs/AST-008/spec.mdlines 180-182 restate DR5's evidence list although the new record says AST-008 FR12 does not restate it; linking DR5 alone keeps one owner.
Non-blocking, for the owner deciding:
- The new Adjacent colors sentence counts a field's own fill as adjacent when it is the interactive area, but does not say whether the boundary must then reach 3:1 against both that fill and the outside surface, or either; it also says "adornment" where
component:InputGroupcalls that cell an addon. - Miss: DR5 names only a visual or manual evidence layer, so contrast for known token pairs, which script tests already check, would not count.
- Only WCAG's inactive-component exception is named; the user-agent-appearance and essential-presentation exceptions are not.
- One
pr-interactionCI shard fails on a Popover per-frame paint test whose spec changed onmainafter this branch's base; this change touches no Popover code, and updating the branch should clear it.
[Automated review]
| | --------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------- | | ||
| | Treatment | The boundary, fill, indicator, or graphic part reviewed | Meets 3:1 against adjacent colors, or DR3 names its independent cue | | ||
| | Independent cue | A different visible cue that carries the same meaning | Meets its own applicable threshold against its adjacent colors | | ||
| | Adjacent colors | The colors the treatment or cue touches. A boundary is measured against the surface outside the component; its own fill counts as adjacent only when that fill is the interactive area or the cue that identifies the component, and an adornment's decorative fill does not. | Named in the evidence, per mode and state | |
There was a problem hiding this comment.
Optional, for the owner deciding: this counts the component's own fill as adjacent when it is the interactive area, but the Treatment row's "Meets 3:1 against adjacent colors" then reads as 3:1 against both the outside surface and that fill. WCAG's Understanding note for 1.4.11 measures an input's boundary against the colour outside the component only, so "both" is stricter than WCAG for a filled field on a different surface, and "either" would accept a border that contrasts only with the field's interior. Saying which one is meant settles it. Also, no current record says "adornment": component:InputGroup and component:InputGroupText call that muted cell the text addon, so "an addon's decorative fill" ties the rule to a part reviewers can find.
…t-applicability Maintainer merge of main into @rubyycheung's branch; no change to the pull request's own files beyond the clean merge.
There was a problem hiding this comment.
Approval waits on an engineering owner: design:non-text-contrast is a new draft record whose DR1–DR5 and tables define when WCAG 2.2 1.4.11's 3:1 threshold applies, and the reworded spec:AST-020 1.4.11 row and the new spec:AST-008 FR12 sentence delegate to it. Because these are accessibility requirements, an engineering owner records the decision by commenting /approve-spec <full head SHA> on this pull request (the author may do so if they are an engineering owner), and the record should move to current with that approval so the two current records do not point at a draft.
Also needed:
docs/specs/AST-020/spec.mdlines 209-215 still cite issue #4112 and pull request #4113 as standing content, while the writing rubric results report R1 and R5 as none for the touched records.docs/specs/AST-008/spec.mdlines 180-182 restate DR5's evidence list although the new record says AST-008 FR12 does not restate it, so the two lists can drift; linking DR5 alone keeps one owner.- Miss: the description's "Existing authority searched" paragraph still says an owner must choose between AST-020 and
docs/design/, which contradicts its own Decision section and this head.
Non-blocking:
- Newly live check: the new record's empty sections say what is "not included yet" or "in this draft" (lines 81-93), which the project-status rubric item R7 now keeps out of records; writing
None.there and adding an R7 line to the rubric results fixes it.
Claims and files checked
Review mode: full; reason: author-not-engowner
- Claim: the rule lives in a new draft design record because the architecture gives contrast methodology to design records: verified (
docs/design/non-text-contrast.md, authority draft). - Claim: an owner must still choose whether the rule stays in AST-020 or moves to
docs/design/: false (the Decision section and the head put it indocs/design/; AST-020 holds no rule). - Claim: DR1–DR5 cover scope, suppression, an independent cue at its own threshold, one qualifying cue, evidence, and the inactive exception: verified (record lines 31-71).
- Claim: the completeness review's 1.4.11 row states the outcome and points to the record: verified (AST-020 line 158).
- Claim: palette evidence follows the record: verified (AST-008 lines 180-182), but the sentence also copies DR5.
- Claim: the reusable checklist mirrors the outcome: verified (
checklist.tsline 105, the row's text without code formatting). - Claim: no change to text thresholds, component visuals, theme mappings, axe coverage or the inactive exception: verified (only the five files below change).
- Claim: the Y2K palette work holds the first theme matrix that applies the rule and keeps its audit local: verified (merged; the Y2K theme record keeps the matrix and leaves the shared owner open).
- Claim: rubric R1 and R5 found nothing in the touched records: false (AST-020 lines 209-215); R2, R3, R4 and R6: verified; no R7 line is reported.
- Claim: the knowledge check passes: verified at this head.
- Claim: the a11y-spec typecheck and tests pass: verified at this head.
- Claim: a maintainer added one Adjacent colors sentence and the other table rows only re-align: verified (record line 55).
- Claim: the latest merge of
mainis clean and leaves this pull request's own changes alone: verified (its own diff is unchanged;main's own AST-020 edits arrive through the merge). - Claim: public text carries no internal context: verified.
- File
docs/design/non-text-contrast.md: waits on the owner decision; non-blocking project-status lines 81-93. - File
docs/specs/AST-020/spec.md: waits on the owner decision for line 158; blocking: lines 209-215. - File
docs/specs/AST-008/spec.md: waits on the owner decision; blocking: lines 180-182 copy DR5. - File
internal/a11y-spec/src/checklist.ts: clear. - File
docs/design/README.md: clear.
… tests Maintainer edits on @rubyycheung's record. DR5 requires a scripted test that computes contrast where the treatment and its adjacent colors are theme tokens; a visual or manual review covers only what a script cannot compute. AST-008 FR12 links DR5 instead of restating it. The AST-020 current-state paragraph states the pattern-contract direction without citing an issue and a closed pull request. The new record's empty sections say None.
There was a problem hiding this comment.
Approval waits on an engineering owner. design:non-text-contrast is a new draft record whose DR1–DR5 and tables define when WCAG 2.2 1.4.11's 3:1 threshold applies, now with a scripted contrast test for theme-token pairs, and the reworded spec:AST-020 1.4.11 row and the new spec:AST-008 FR12 sentence delegate to it. Because these are accessibility requirements, an engineering owner records the decision by commenting /approve-spec <full head SHA> on this pull request (the author may do so if they are an engineering owner), and the record should move to current with that approval so the two current records do not point at a draft. The earlier record and description fixes are all in, and nothing else blocks.
Non-blocking, for the owner deciding:
- The Adjacent colors row (line 55) leaves open whether a counted fill is measured as well as or instead of the outside surface, and says "adornment" where the InputGroup records say "addon".
- The state table (line 64) names only WCAG's inactive-component exception, not its user-agent-appearance or essential-presentation exceptions.
Claims and files checked
Review mode: full; reason: author-not-engowner
- Claim: the rule lives in a new draft design record because the architecture gives contrast methodology to design records: verified (record authority is draft; it sits under
docs/design/). - Claim: the accessibility and palette records did not say how to tell necessary visual information from an optional treatment: verified (the old 1.4.11 row and FR12 text).
- Claim: DR1–DR4 cover scope, suppression, an independent cue at its own threshold, and one qualifying cue: verified (record lines 31-47).
- Claim: DR5 names the evidence and requires a scripted test for theme-token pairs, with visual or manual review covering only what a script cannot compute: verified (lines 68-75); the inactive exception it lists sits in the state table (line 64).
- Claim: the completeness review's 1.4.11 row states the outcome and points to the record: verified (AST-020 line 158).
- Claim: palette evidence follows DR5 without restating it: verified (AST-008 line 180).
- Claim: the reusable checklist mirrors the outcome: verified (
checklist.tsline 105, the row's text without code formatting). - Claim: no change to text thresholds, component visuals, theme mappings, axe coverage or the inactive exception: verified (only the five files below change).
- Claim: the merged Y2K palette work holds the first theme matrix that applies the rule and keeps its audit local: verified (the Y2K theme record keeps the matrix and leaves the shared-owner question open).
- Claim: the writing rubric finds nothing in the touched records: verified (no standing pull request or issue references, no status lines; empty sections read None.).
- Claim: the knowledge check passes: verified at this head.
- Claim: Prettier is clean: verified on all five files.
- Claim: the a11y-spec typecheck and tests pass, and the only code change is the checklist string: verified at this head (the top-level test files run 75 tests; the reported 73 is for an earlier head).
- Claim: a maintainer added one Adjacent colors sentence and the other table rows only re-align: verified (line 55).
- Claim: DR5's scripted test follows a maintainer's comment asking for token contrast to be enforced by tests, quoted correctly: verified.
- Claim: the latest merge of
mainis clean and leaves this pull request's own changes alone: verified (its own diff is unchanged;main's own AST-020 edits arrive through the merge). - Claim: the author's original commit is kept: verified.
- Claim: the canonical owner, affected current claims and overlapping open work are named: verified (the Y2K palette work and the open neutral control-boundary pull request are named).
- Claim: public text carries no internal context: verified.
- File
docs/design/non-text-contrast.md: waits on the owner decision; non-blocking readings at lines 55 and 64. - File
docs/specs/AST-020/spec.md: waits on the owner decision for line 158; the non-goal and current-state rewrite are clear. - File
docs/specs/AST-008/spec.md: waits on the owner decision for line 180. - File
internal/a11y-spec/src/checklist.ts: clear. - File
docs/design/README.md: clear.
| | resting boundary | The control is findable from at least one cue at its threshold | A sub-threshold boundary when DR3 names the qualifying cue | | ||
| | selected or on | The state is identifiable from at least one cue at its threshold | A sub-threshold fill when an indicator or text carries state | | ||
| | graphic part | Each part needed to understand the graphic meets 3:1, or DR3 applies | Decorative parts have no threshold | | ||
| | inactive control | WCAG's inactive-component exception applies | Any contrast | |
There was a problem hiding this comment.
Optional, for the owner deciding: WCAG 2.2 1.4.11 has three exceptions: inactive components, components whose appearance the user agent determines and the author does not modify, and graphics whose particular presentation is essential to the information conveyed. This row names only the first, so read literally the record is stricter than the criterion it cites. If that is not intended, naming all three (or "WCAG's 1.4.11 exceptions") keeps it aligned.
|
/approve-spec 70c838b |
|
/approve-spec 0aca570 |
There was a problem hiding this comment.
Changes requested: one front-matter fix. An engineering owner has approved the spec content at this head, so the rule itself is settled; what remains is that the new record still declares itself a draft.
docs/design/non-text-contrast.mdkeepsauthority: draftandapproved_by: null(lines 6–10) while the currentspec:AST-0201.4.11 row andspec:AST-008FR12 now defer to it, so once merged the applicability rule they point to would guide no review: setauthority: current,approved_by: cixzhangand the approval date (these three keys sit outside the approved content, so the approval stands), or, if the record should stay a draft, keep the two current records from deferring to it.
The two earlier optional readings (the Adjacent colors row at line 55 and the single WCAG exception at line 64) are settled by that approval and need no change.
Claims and files checked
Review mode: full; reason: merge-touches-pr-files
- Claim: the accessibility and palette records did not say how to tell necessary visual information from an optional treatment: verified (the earlier 1.4.11 row and FR12 text).
- Claim: the architecture gives cross-theme contrast methodology to a design record, so the rule lives under
docs/design/and the two records link to it: verified (AST-020 line 158, AST-008 line 194); the architecture asks for a current design record, which is the finding above. - Claim: the Y2K theme work keeps its concrete audit local: verified (the theme record keeps its matrix and its shared-owner question open).
- Claim: the new record is a draft and the canonical rule: verified as stated (line 6); the draft state is the finding above.
- Claim: DR1–DR4 cover scope, suppression, an independent cue at its own threshold, and one qualifying cue that sub-threshold cues cannot replace: verified (lines 31-47).
- Claim: DR5 names the evidence and requires a scripted test for theme-token pairs, and inactive controls keep WCAG's exception: verified (lines 68-75; the exception sits in the state table, line 64).
- Claim: the completeness review's 1.4.11 row states the outcome and links the record: verified (AST-020 line 158).
- Claim: palette evidence follows DR5: verified (AST-008 line 194).
- Claim: the reusable checklist mirrors the outcome: verified (
checklist.tsline 105, the row's text without code formatting). - Claim: no change to text thresholds, component visuals, theme mappings, axe coverage or the inactive exception: verified (only the five files below change).
- Claim: the writing rubric finds nothing in the touched records: verified (the non-goal at AST-020 line 48 no longer names a pull request; no standing pull request or issue references; empty sections read None.).
- Claim: the pull request is not records-only and its public text carries no internal context: verified.
- Claim: the knowledge check is aligned: verified at this head (the description names an earlier commit).
- Claim: Prettier is clean: verified on all five files.
- Claim: the a11y-spec typecheck and tests passed at an earlier head with 73 tests: at this head the typecheck passes and the top-level test files run 75 tests.
- Claim: the change was reshaped with the author's original commit and authorship kept: verified.
- Claim: a maintainer added one Adjacent colors sentence and the other table rows only re-align: verified (line 55).
- Claim: DR5's scripted test follows a maintainer's comment asking for token contrast to be enforced by tests, quoted correctly with its time: verified.
- Claim: AST-008 FR12 links DR5 instead of restating it, and the AST-020 current-state text no longer cites an issue or a pull request: verified (AST-008 line 194; AST-020 lines 209-227).
- Claim: the earlier merge of
mainleft this pull request's own changes alone: verified; the latest merge, which the description does not mention, bringsmain's palette-input text into AST-008 and also leaves the pull request's own patch unchanged. - File
docs/design/non-text-contrast.md: blocking finding at lines 6-10. - File
docs/specs/AST-020/spec.md: clear once the record is current (line 158 defers to it); the non-goal and current-state rewrite are clear. - File
docs/specs/AST-008/spec.md: clear once the record is current (line 194 defers to it). - File
internal/a11y-spec/src/checklist.ts: clear. - File
docs/design/README.md: clear.
|
/approve-spec e965ebc |
There was a problem hiding this comment.
Changes requested: one description edit. An engineering owner has approved the spec content at this head, and the latest commit records that approval, so the record now lands as current and the rule itself is settled.
- The description's Decision section still says
design:non-text-contrastis "(new, draft)", whiledocs/design/non-text-contrast.mdlines 6–10 now readauthority: currentwith the approver and date recorded, so please update that line (for example to "(new, current, approved by an engineering owner)"); no new commit is needed.
The earlier front-matter request is resolved by the latest commit.
Claims and files checked
Review mode: full; reason: author-not-engowner
- Claim: the accessibility record owns global spec-test rules and the palette record owns palette accessibility evidence: verified (the AST-020 global scope and FR6; AST-008 FR12).
- Claim: neither record said how to tell necessary visual information from an optional treatment: verified (the earlier 1.4.11 row and FR12 text).
- Claim: the architecture gives cross-theme contrast methodology to a design record, so the rule lives under
docs/design/and the two records point to it: verified (AST-020 line 158, AST-008 line 194, which name the record). - Claim: the Y2K theme work keeps its concrete audit local and holds the first component and state matrix: verified (#7675 merged; the theme record keeps its matrix and its open question).
- Claim: the new record is new and a draft: false; the record is current and approved at this head (lines 6-10), the finding above.
- Claim: DR1–DR4 cover scope, suppression, an independent cue at its own threshold, and one qualifying cue that faint cues cannot replace: verified (lines 31-47).
- Claim: DR5 names the evidence and requires a scripted test for theme-token pairs, and inactive controls keep WCAG's exception: verified (lines 68-75; the exception is in the state table, line 64).
- Claim: the completeness review's 1.4.11 row states the outcome and names the record, palette evidence follows DR5, and the reusable checklist mirrors the row: verified (AST-020 line 158, AST-008 line 194,
checklist.tsline 105). - Claim: no change to text thresholds, component visuals, theme mappings, axe coverage or the inactive exception: verified (only the five files below change).
- Claim: the writing rubric finds nothing in the touched records: verified (no pull request or issue references remain; empty sections read None.).
- Claim: the pull request is not records-only and its public text carries no internal context: verified.
- Claim: the knowledge check is aligned and Prettier is clean: verified at this head.
- Claim: the a11y-spec typecheck and tests passed at an earlier head: at this head the typecheck passes and the four top-level test files pass 75 tests; the only code change is the checklist string.
- Claim: the change was reshaped with the author's original commit and authorship kept: verified.
- Claim: a maintainer added one Adjacent colors sentence and the other table rows only re-align: verified (line 55).
- Claim: DR5's scripted test follows a maintainer's comment, quoted correctly with its time; AST-008 FR12 points to DR5 instead of restating it; the AST-020 current-state text no longer cites an issue or a pull request: verified.
- Claim: a merge of
mainwas clean and left the pull request's own changes alone: verified; a later clean merge ofmainis not mentioned and also leaves them alone. - File
docs/design/non-text-contrast.md: clear; the front matter now records the approval. - File
docs/specs/AST-020/spec.md: clear. - File
docs/specs/AST-008/spec.md: clear. - File
internal/a11y-spec/src/checklist.ts: clear. - File
docs/design/README.md: clear.
There was a problem hiding this comment.
Approved. CI passed on this head, an engineering owner approved the spec content at this exact head, the new design record lands as current, and every description claim and changed file checks out, so nothing needs to change.
Claims and files checked
Review mode: same-head; reason: none
- Claim: the accessibility spec-test record owns global WCAG evidence rules and the palette record owns palette accessibility evidence: verified (AST-020 global scope; AST-008 FR12).
- Claim: neither said how to tell necessary visual information from an optional treatment: verified (the earlier 1.4.11 row and FR12 text).
- Claim: the architecture gives cross-theme contrast methodology to a design record, so the rule lives under
docs/design/and the two records point to it: verified (AST-020 line 158, AST-008 line 194). - Claim: the Y2K theme work keeps its concrete audit local and holds the first component and state matrix: verified (the Y2K record keeps its suppression audit and open question).
- Claim: the new record is current and approved by an engineering owner: verified (front matter lines 6-10 and the owner's approval of this head).
- Claim: DR1–DR4 cover scope, suppression, an independent cue at its own threshold, and one qualifying cue that faint cues cannot replace: verified (lines 31-47).
- Claim: DR5 names the evidence and requires a scripted test for theme-token pairs, and inactive controls keep WCAG's exception: verified (lines 68-75; the exception is in the state table, line 64).
- Claim: the completeness review's 1.4.11 row names the record, palette evidence follows DR5, and the reusable checklist mirrors the row: verified (AST-020 line 158, AST-008 line 194,
checklist.tsline 105). - Claim: no change to text thresholds, component visuals, theme mappings, axe coverage or the inactive exception: verified (only the five files below change).
- Claim: the writing rubric finds nothing in the touched records: verified (no pull request or issue references; empty sections read None.).
- Claim: the pull request is not records-only and its public text carries no internal context: verified.
- Claim: the knowledge check is aligned and formatting is clean: verified by CI at this head.
- Claim: the a11y-spec typecheck and tests passed at an earlier head, and the only code change is the checklist string: verified; CI's typecheck passes at this head.
- Claim: the change was reshaped with the author's original commit and authorship kept: verified.
- Claim: a maintainer added one Adjacent colors sentence and the other table rows only re-align: verified (line 55).
- Claim: DR5's scripted test follows a maintainer's comment, quoted correctly with its time; AST-008 FR12 points to DR5 instead of restating it; the AST-020 current-state text no longer cites an issue or a pull request: verified.
- Claim: a merge of
mainwas clean and left the pull request's own changes alone: verified; a later clean merge ofmainalso leaves them alone. - File
docs/design/non-text-contrast.md: clear. - File
docs/specs/AST-020/spec.md: clear. - File
docs/specs/AST-008/spec.md: clear. - File
internal/a11y-spec/src/checklist.ts: clear. - File
docs/design/README.md: clear.
Exact decision needed
When does a visual treatment, especially a border, carry information that must meet WCAG 2.2 non-text contrast?
Existing authority searched
spec:AST-020already owns Astryx’s global accessibility spec-test rules and WCAG evidence boundaries.spec:AST-008/FR12owns palette accessibility evidence. Neither current claim defined how reviewers distinguish necessary visual information from an optional treatment.architecture:knowledge-contractsINV2 assigns cross-theme human contrast methodology to a design record, so the rule lives in the design recorddesign:non-text-contrast, and AST-020 and AST-008 FR12 link to it. Y2K PR #7675 keeps its concrete audit local.Decision
design:non-text-contrast(new, current, approved by an engineering owner) is the canonical rule.architecture:knowledge-contractsINV2 assigns cross-theme human contrast methodology to a design record, so the rule lives indocs/design/, not in AST-020.Links into the rule:
spec:AST-020: the 1.4.11 row of the completeness review states the outcome and links to the design record.spec:AST-008/FR12: palette evidence follows it.Rejected alternatives
Claim scope and non-goals
This PR defines applicability and evidence for WCAG 2.2 1.4.11. It does not change text-contrast thresholds, component visuals, theme mappings, automated axe coverage, or the inactive-component exception.
Evidence and implementation relationship
The checklist update keeps reusable review language aligned with the canonical record. Y2K PR #7675 contains the first theme-specific component/state matrix and contrast measurement that apply this rule.
Writing rubric results
None.Scope
Validation
pnpm check:knowledge: aligned at 86f6f64.pnpm -F @astryxdesign/a11y-spec typecheckandpnpm vitest run internal/a11y-spec/src/*.test.ts(73 passed). This head changes only the checklist outcome string.Rebased onto main and reshaped per the ownership review (rule moved to
docs/design/); the original commit and authorship are kept.Maintainer clarification (@cixzhang)
One sentence added to the "Adjacent colors" definition, at e3012ed, with @rubyycheung's commits kept: "A boundary is measured against the surface outside the component; its own fill counts as adjacent only when that fill is the interactive area or the cue that identifies the component, and an adornment's decorative fill does not." It settles where the 3:1 applies for a field adornment with a muted fill, the case #7662 (Neutral control boundaries) measures. The other table rows only re-align.
check:knowledgepasses.Maintainer edits (lane 2, 70c838b)
spec:AST-008FR12 links DR5 instead of restating its list.None.(rubric R7).Owner and land path
Owner: fix lane 2 (maintainer carry; @rubyycheung's change). Main merged into the branch as a maintainer edit (549985e, clean merge, no change to this pull request's files). Land path: Specs stamp, CodeBunny review, required checks, then the merge queue.