Skip to content

test(a11y): add Table contract and bind Table - #7695

Merged
cixzhang merged 11 commits into
mainfrom
a11y-table-contract
Oct 24, 2026
Merged

cixzhang merged 11 commits into
mainfrom
a11y-table-contract

Conversation

@cixzhang

@cixzhang cixzhang commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

What this proves

Table now has an executable Table contract and a binding. A screen-reader user moving through a Table gets: a table (not a grid or plain text) with the name its caller gives it; every row exposed as a row inside it, holding the headers and cells shown in it; every column title exposed as a columnheader and every row title as a rowheader inside that table; data values exposed as ordinary cells inside it, including the default empty-state message; and aria-sort on exactly the column the rows are sorted by, with no stale direction on any other header.

Test-only: no runtime, docs, or Changeset. The one record edit is the component:Table evidence backlink AST-021 FR12 requires (verified_by and the verification map name the new binding); it changes no behavior or decision, but because component:Table is current it waits on spec-owner-approval.

Adoption source. spec:AST-020 FR15 (current) decides the parts: Table already plays the table role, so it takes the APG Table pattern's required parts — the role, the name, the row, header, and cell roles, and the sort state. The APG Table pattern lists its keyboard interaction as "Not applicable" (a table is not a widget and its cells are not focusable), so nothing keyboard-related is adopted. component:Table's accessibility contract already records native table semantics, column-header scope, and sort aria-sort as unchanged behavior; the sort expectation cites it too.

Module composition

Table accessibility is modular: each Table module brings its own accessibility semantics. The base TABLE_PATTERN covers only the table role and name, rows, column and row headers, and cells. Sort state is a module contract owned beside useTableSortable (packages/core/src/Table/plugins/sortable/__tests__/useTableSortable.a11y.ts: TABLE_SORT_MODULE, TableSortFacts, TABLE_SORTABLE_PATTERN), composed onto the base with composeTablePattern from @astryxdesign/a11y-spec. The Table binding composes it only for the state rendered with the sort module (sorted-descending); the other states bind the base alone, and a binding test fails if a state's contract and its declared modules disagree. A later module (tree or grid rows, for example) brings its semantics the same way. The sort module carries its own positive and mutation fixtures (useTableSortable.a11y.test.tsx).

Expectations (AST-020 FR13)

Expectation Sources Layer Enforcement
table.role.exposed WCAG 1.3.1, APG Table accessibility-tree required
table.name.exposed spec:AST-020 FR15, APG Table (supports WCAG 1.3.1 and 2.4.6) accessibility-tree required
table.rows.exposed WCAG 1.3.1, APG Table accessibility-tree required
table.column-headers.exposed WCAG 1.3.1, APG Table accessibility-tree required
table.row-headers.exposed WCAG 1.3.1, APG Table accessibility-tree required
table.cells.exposed WCAG 1.3.1, APG Table accessibility-tree required
table.sort.exposed (sort module, composed for sorted states) spec:AST-020 FR15, APG Table, component:Table accessibility contract (supports WCAG 1.3.1) dom required

The row, header, and cell expectations also require each designated row, header, and cell to sit in the table's accessibility subtree, and table.rows.exposed requires every designated header and cell to sit in one of the designated rows, so a value rendered beside the table fails. table.name.exposed applies when the binding declares a label; whether a caller supplies one is the caller's (2.4.6 remainder).

Exemptions: 1.1.1-non-text-content → caller content and Icon; 1.3.1-info-and-relationships → caller content and the Table modules that add rows or cells (remainder only: captions, spans, counts and indexes, detail and group rows, irregular header association); 1.3.2-meaningful-sequence → binding and caller data order; 1.3.5-identify-input-purpose → controls in cells; 1.4.1-use-of-color, 1.4.3-contrast-minimum, 1.4.11-non-text-contrast, forced-colors → binding and theme; 2.1.1-keyboard, 2.1.2-no-keyboard-trap, 2.4.3-focus-order, 2.4.7-focus-visible → the Scroll region (component:Table FR1) and controls in cells; 2.4.2-page-titled, 3.1.1-language-of-page → the page; 2.4.4-link-purpose → the link pattern; 2.4.6-headings-and-labels → caller labels and titles (remainder only); 2.4.11-focus-not-obscured → sticky-columns module, Scroll region, page; 2.5.2-pointer-cancellation, 2.5.3-label-in-name, 2.5.8-target-size, 3.2.2-on-input → controls in cells; 3.2.4-consistent-identification → system and caller content; 3.3.1-error-identification → form and row-status module; 3.3.2-labels-or-instructions → form controls in cells; 4.1.2-name-role-value → the button pattern (sort control), the checkbox pattern (selection), and the row-expansion module; 4.1.3-status-messages → the status-message pattern; apg-interaction → caller content and Table modules (remainder only: describedby captions, col/row counts and indexes, spans, aria-owns); reduced-motion → binding and modules; at-facing-strings → localization and caller labels, AST-009 for speech.

Bindings and states

State Mode What it exercises
data-columns data-driven aria-label, three column headers, first-row cells
sorted-descending data-driven + useTableSortable aria-sort="descending" on Name only, over rows in descending Name order; the unsorted sortable headers carry none
children-row-headers-rtl children, dir="rtl" aria-labelledby to a visible heading, TableHeaderCell scope="row" row headers
empty-data data-driven, data={[]} the default empty state is one spanning data cell inside the table

useTableSortable exposes the sort state but never reorders data, so the binding (and its story, which stays interactive) derives its rows from the sort state; a binding check fails if any sorted state renders rows out of the declared order. A sortable header computes its name from its sort button, so the binding declares those names (for example Sort by Name, sorted descending). That is current behavior, recorded here, not changed.

Known failures: none.

Not adopted here, each with its owner

  • Row and column counts and indexes (aria-rowcount/aria-rowindex for paged or windowed views): BaseTable row-index tests until a follow-up binds them.
  • Selection, expansion, grouped rows, tree rows: each module adds rows, cells, or controls with their own semantics and keeps its tests; Treegrid and Grid are separate patterns.
  • Sort controls themselves (click and keyboard cycling, multi-sort priority, context-menu actions): useTableSortable tests and the button pattern.
  • Row status column (a generated column with a visually hidden header name and per-row indicator cells): useTableRowStatus tests; this binding does not add the status column.
  • Header-cell controls from filtering and column resize (a labelled filter button, a focusable resize separator): they change header names, so their header states bind with useTableFiltering and useTableColumnResize rather than here.
  • The Scroll region (name, conditional Tab stop, overflow containment): TableScroll.a11y.chromium.spec.ts.

Duplicate assertions (AST-021 FR6)

  • Removed: useTableSortable.test.tsx "sets aria-sort="descending" on sorted descending th" — table.sort.exposed proves the same DOM fact on the same plugin output (sorted-descending) in the jsdom lane. Mutation check: dropping aria-sort from the plugin fails the sorted-descending binding test.
  • Kept, each with its reason: "sets aria-sort="ascending"" and "does not set aria-sort on non-sortable columns" — no binding state covers ascending or a non-sortable column. "does not set aria-sort on unsorted columns" asserts the plugin omits the attribute; the contract also accepts none, so the omission is the remaining component-specific claim. Table.test.tsx role queries for table/columnheader/cell are render-structure tests in jsdom; the contract proves roles only in Chromium, in the non-required pr-a11y job.

Shape

  • internal/a11y-spec/src/patterns/table.ts — base TABLE_PATTERN: 6 expectations with WCAG, APG Table (wording checked against the published pattern on 2026-10-19), and spec:AST-020 FR15 sources; every other checklist dimension exempted with an owner. TableModuleContract and composeTablePattern are the module seam.
  • packages/core/src/Table/plugins/sortable/__tests__/useTableSortable.a11y.ts and .a11y.test.tsx — the sort module contract (table.sort.exposed) and its self-test: one sorted and one unsorted conforming fixture and three violating twins; sorted fixtures render rows in the declared descending order (Grace before Ada).
  • table.fixtures.ts — a plain HTML table in three conforming and fifteen violating forms; every base expectation has at least two violating twins, and the row, header, and cell expectations each have a twin whose part keeps its role and name but belongs to a second data table, so the in-table checks fail on containment alone. The sort fixtures moved to the sort module.
  • table.jsdom.test.ts and table.chromium.spec.ts — the contract self-test in both lanes.
  • packages/core/src/Table/__tests__/Table.a11y.{states,renders,contracts,test}.ts(x) and Table.a11y.chromium.spec.ts — the four states above; contracts picks the base or the composed sortable contract per state.
  • apps/storybook/stories/TableA11y.stories.tsx — one no-visual story per state, rendered from the shared renders so the lanes cannot drift.
  • .github/workflows/ci.yml — "Run Table accessibility contract" step plus its evidence upload; runs when Table, the stories, or the contract change.
  • README row and paragraph, index export.
  • packages/core/src/Table/Table.spec.md — verified_by lists the two binding files and the sort module self-test; the FR5 verification row names the sort module contract the binding composes for its sorted state; the Accessibility contract row names the base contract, the sort module contract, and the existing Scroll region spec (AST-021 FR12).

Evidence

  • Head 15c2187 (review fixes): contract jsdom self-test 17/17 and binding jsdom lane 11/11, with the new row-order checks failing 4/4 against the previous fixture and render; Table __tests__ plus contract 28/28; core and a11y-spec tsc, eslint, Prettier clean. Chromium evidence for this head comes from its pr-a11y run.
  • Earlier head: contract jsdom self-test 14/14; binding jsdom lane 10/10 (DOM rows pass, tree rows reported unrun); Table directory 627/627; a11y-spec package 748/748.
  • tsc (a11y-spec), eslint, Prettier, and the repository pre-push checks clean.
  • Real Chromium, head 1b8e584: the "Run Table accessibility contract" step (pr-a11y run 39280986129) passed 28/28 — 4 conforming fixtures, all 18 violating fixtures failing their own expectation (including the four second-table fixtures, which fail on containment alone), all four Table binding states, and the every-expectation-exercised check. (An earlier head showed a labelled role="presentation" table keeps its table role, because a global ARIA attribute overrides the presentational role, so that fixture is unlabelled.)

Writing rubric results

Record touched: component:Table (evidence backlink only).

R1 narration: none; the new verification text states what the binding checks.
R2 research: none.
R3 evidence: the new cells name test files and outcomes, not pull requests or commits.
R4 rejected alternatives: none added.
R5 change references: none.
R6 open questions: none added; the record still has none.

Scope

  • No intended public API, product behavior, visual direction, or policy change; the only record edit is the FR12 evidence backlink.
  • Product changes discovered during the work were removed or split.
  • Public text and artifacts contain no internal Meta context.

@vercel

vercel Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
astryx Ready Ready Preview Oct 24, 2026 6:12pm UTC

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Oct 19, 2026
@astracat-bot

astracat-bot Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
❓ Needs maintainer input (for maintainers only) Oct 24, 2026, 6:31 PM UTC

@github-actions

github-actions Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

📚 Storybook Preview

View Storybook for this PR

🧪 Sandbox Preview

View Sandbox for this PR

No new or modified components detected.

Bundle Size Summary

Package Size (ESM) Size (CJS) Gzipped
@astryxdesign/core N/A 4.9KB 1.2KB

Accessibility Audit

Status: No accessibility violations detected.

Visual Regression

46 of 502 shot(s) changed.

A change here is a question, not a failure: check whether the after is the
picture you intended. Record that review on the PR. Baseline maintenance is an
explicit dispatch of CI; this report never rewrites the baseline or adds a release gate.

component story theme mode pixels
Selector Indicator Space Bottom Sheet Narrow End RTL neutral light 753,933
Selector Indicator Space Bottom Sheet Wide Start neutral light 740,072
Chat Full AI Chat probe light 230,823
Chat Full AI Chat probe dark 229,805
RichTextEditor Markdown parity: side by side probe dark 94,866
RichTextEditor Markdown parity: side by side probe light 89,762
Collapsible Dividers probe dark 66,445
Collapsible Dividers probe light 66,445
Chat Default neutral dark 36,304
Chat Default neutral light 35,767
Chat Empty State probe light 23,531
Chat Empty State probe dark 22,622
ChatAutoScroll Scroll Behavior Comparison neutral dark 15,378
ChatAutoScroll Scroll Behavior Comparison neutral light 14,107
Chat With Attachments probe light 13,406
Chat With Attachments probe dark 11,232
ProgressBar With Target Mark probe dark 7,895
ProgressBar With Target Mark probe light 7,895
Markdown Default neutral dark 7,573
Markdown Default neutral light 7,566

and 26 more.


Generated by PR Enrichment workflow | Storybook | Sandbox | View full report

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the thorough contract and binding: the jsdom and Chromium checks pass on this head, but three spec-required pieces are missing before this can be approved. Please address the points below and push an update.

  • Update Table.spec.md so verified_by and the verification map name the new Table binding, and stop crediting useTableSortable.test.tsx for the descending aria-sort state now that its test is removed (AST-021 FR12).
  • Encode APG's row requirement (each row has role row inside the table or a rowgroup), or name it in an exemption with a real owner, since neither the expectations nor the remainder reasons mention it today (AST-020 FR5).
  • Add an inventory exclusion for the filtering and column-resize modules, which place labelled controls inside header cells and can change the header names the contract checks (AST-021 FR4).

[Automated review]

expect(nameHeader).toHaveAttribute('aria-sort', 'ascending');
});

it('sets aria-sort="descending" on sorted descending th', () => {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing this moves the descending aria-sort proof to the Table binding, but Table.spec.md still credits useTableSortable.test.tsx for that state in its FR5 verification row and does not list Table.a11y.test.tsx or Table.a11y.chromium.spec.ts in verified_by. AST-021 FR12 asks the migration to update both so the record names the binding.

verifiedBy:
'Each module’s own tests and later bindings of those modules to this contract',
reason:
'This contract encodes the table, header, and cell roles, the table name, and sort state. Captions and descriptions, cell spans, column and row counts and indexes, detail and group rows, and header association in tables with irregular headers are not encoded here.',

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The APG list this contract quotes also requires: “Each row container has role row and is either a DOM descendant of or owned by the table element or an element with role rowgroup.” No expectation encodes it, and neither this remainder nor the apg-interaction one (L448) names it, so it is unaccounted under AST-020 FR5. Encoding it (for example, each designated header's and cell's row computes row inside the table subtree, with violating fixtures) needs no product change, since Table renders native tr rows.

},
] as const satisfies ReadonlyArray<TableA11yState>;

export const TABLE_A11Y_EXCLUSIONS = [

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

useTableFiltering (a labelled filter button in the header's after slot) and useTableColumnResize (a focusable, labelled role="separator" in its overlay slot) both render inside the th, so they can change the header names table.column-headers.exposed asserts. AST-021 FR4 asks the inventory to say why such omitted states cannot change the shared outcome; one exclusion row naming those modules as owners would cover it.

…es header-cell module controls, and backlinks component:Table
@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Oct 19, 2026

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks: the earlier requests are all addressed and the jsdom and Chromium lanes pass on this head, but one piece of the contract's negative proof is still missing before this can be approved. No violating fixture reaches the checks that each row, header, and cell sits inside the table, so deleting those checks leaves all 19 Chromium self-tests green, because every violating fixture already fails another check first (as the existing review comment on the fixtures notes). Please add fixtures that keep the role and name correct but move the designated row, column header, row header, and cell into a second table, list them in TABLE_MUTATIONS, and give that second table a header cell, since Chromium exposes a header-less one-row table as a layout table and the fixture would then fail on role again.

[Automated review]

`row ${index + 1} is exposed as ${describeRole(role)}, not as a row`,
);
}
if (!(await harness.containsSemantically(subject, row))) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This row-in-table check, the header check at L131, and the cell check at L317 are not reached by any violating fixture: with all three deleted, the 19 Chromium self-tests still pass, because each fixture fails a role, name, or part-in-row check first. A fixture that keeps the part's role and name but puts it in a second table would make each of them fail only on containment. Give that second table a header cell: without one, Chromium exposes a one-row table as a layout table (LayoutTableRow, LayoutTableCell), and the fixture fails on role again.

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks ready for approval: the new second-table fixtures make each of the contract's inside-the-table checks fail on containment alone, and the Chromium contract, the Table binding, and the jsdom lanes pass on this head. No code changes are needed; because Table.spec.md is a current record, the spec-owner check still needs an engineering owner's approval on this head.

[Automated review]

@humbertovirtudes humbertovirtudes left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the updated exact head 1b8e584. The containment-only fixtures address my comment, and all 53 checks are complete with no failures. Good to go.

…ated merge

# Conflicts:
#	.github/workflows/ci.yml
#	internal/a11y-spec/src/index.ts

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the thorough contract and binding; two small fixes are needed before this can be approved. conforming-sorted (table.fixtures.ts L182–L186) and the binding's sorted-descending state (Table.a11y.renders.tsx L46) put aria-sort="descending" on Name over the rows Ada, then Grace, which is ascending order, so the only sorted positive proof for table.sort.exposed is a table whose exposed sort state contradicts its own rows; please render those rows in the order each state declares. Please also add a TABLE_A11Y_EXCLUSIONS entry for useTableRowStatus, whose generated status column adds a visually hidden header name and indicator cells that this contract checks (AST-021 FR4). After the update, the spec-owner check needs an engineering owner's approval on the new head, since Table.spec.md is a current record.

[Automated review]

summary:
'a table sorted by one column, with an explicit none on an unsorted header',
facts: facts({sort: SORTED}),
html: html({ariaSort: {0: 'descending', 2: 'none'}}),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This conforming fixture declares Name sorted descending, but ROWS (L21–L23) render Ada before Grace, which is ascending order; violating-sort-direction (L295–L298) is the fixture whose header matches these rows. Render the rows in the order this fixture declares (or declare ascending here and expose descending in the violating twin), so the sorted positive proof for table.sort.exposed is a truthful table.

data-a11y-table
aria-label="Team members"
columns={SORTABLE_COLUMNS}
data={MEMBERS}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

useTableSortable is headless: it sets aria-sort from the sort state but never reorders data, so this state (and the Sorted Descending story) announces “Name, sorted descending” over Ada, then Grace. Passing the members in descending name order (Grace, Ada) keeps every declared count and makes the state truthful.

},
] as const satisfies ReadonlyArray<TableA11yState>;

export const TABLE_A11Y_EXCLUSIONS = [

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AST-021 FR4: useTableRowStatus prepends a generated column whose visually hidden header name and per-row indicator cells are exactly what this contract checks, and it is neither bound nor listed here. One exclusion like the selection entry (owner: the useTableRowStatus tests; this binding does not add the status column) closes it.

@humbertovirtudes humbertovirtudes left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Requesting changes on c0e6a1da7a816693904fd574241ef24ba76095f3. The improved containment-only fixtures, binding backlinks, row-role checks, and filtering/resize exclusions are credited.

  1. MAJOR - the sorted positive proof is not truthful. Table.a11y.renders.tsx:36-47 declares descending Name while rendering Ada before Grace. table.fixtures.ts:182-186 has the same mismatch. useTableSortable transforms headers, not data. The actual source expectation passes those attributes without detecting the wrong displayed order. Render Grace before Ada in the descending positives, and derive the interactive story's rows from its sort state if it remains interactive. Keep the negative twins meaningful; no production sorting-policy change is needed.

  2. MINOR / completeness - row-status composition is neither bound nor excluded. Table.a11y.states.ts:90-127 omits the generated named header and cells from useTableRowStatus. Add a narrowly scoped exclusion naming its module/tests as owner and explaining that this binding does not render the status column. Do not grow this migration into row-status remediation.

AI-assisted exact-head source review; the sort source probe ran, but Chromium/DOM binding suites were not independently rerun in this pass. Existing CI evidence and new runtime evidence must remain distinct.

…clude row status

The sorted conforming fixture and the sorted-descending binding declared Name
descending over rows Ada, then Grace. useTableSortable sets aria-sort but never
reorders data, so the positive proof was a table whose exposed sort state
contradicted its own rows. The sorted fixture and its violating twins now
render Grace before Ada, and the binding's story derives its rows from the sort
state. New checks fail when a sorted fixture or binding state renders rows out
of the declared order.

Adds the useTableRowStatus exclusion: its generated status column adds a
visually hidden header name and indicator cells that this binding does not
render (AST-021 FR4).

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the update: the sorted fixture and binding state now list Grace before Ada, with self-tests that fail if that order slips, and the row-status exclusion is in place, so no further code changes are needed. The red pr-a11y job comes from a MultiSelector step on main whose spec file this branch predates, so merging main should clear it. After that, approval waits on the engineering owner who requested changes on the previous head to re-review or dismiss that request, and on an engineering owner's spec-owner approval of the component:Table evidence backlink on the new head.

[Automated review]

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This revision resolves both points from the earlier change requests: the sorted fixture and binding state now list Grace before Ada, with self-tests that fail if that order slips, the useTableRowStatus exclusion is in place, and CI, including the Table accessibility contract step, is green, so no further code changes are needed. Approval now waits on the engineering owner who requested changes on an earlier revision to re-review or dismiss that request, and on an engineering owner's spec-owner approval of the component:Table evidence backlink on this revision.

[Automated review]

…onto the base Table contract

The base Table contract covers the table role and name, rows, column and row
headers, and cells. `table.sort.exposed` and the sort facts move into a module
contract owned beside useTableSortable, with its own positive and mutation
fixtures. The Table binding composes it only for the state rendered with the
sort module, through composeTablePattern, so each Table module brings its own
accessibility semantics.
@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec 8685276

@github-actions github-actions Bot removed the needs:spec-owner-review Current knowledge records await owner approval label Oct 24, 2026
@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec 492fbdb

@github-actions github-actions Bot added needs:spec-owner-review Current knowledge records await owner approval and removed needs:spec-owner-review Current knowledge records await owner approval labels Oct 24, 2026

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This revision keeps both fixes from the earlier change requests after moving sort state into its own module contract: the sorted fixture and binding state still list Grace before Ada, with self-tests that fail if that order slips, and the useTableRowStatus exclusion is still in place. The base contract and the Table binding pass in jsdom and in real Chromium, and the spec-owner approval covers this revision, so no further code changes are needed. Approval now waits on the engineering owner who requested changes on an earlier revision to re-review this revision or dismiss that request.

[Automated review]

TABLE_MUTATIONS,
TABLE_ROW_HEADER_SELECTOR,
TABLE_ROW_SELECTOR,
TABLE_FIXTURES,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit, not blocking: TABLE_FIXTURES is no longer used in this file now that the sort fixtures live in the sort module (ESLint reports @typescript-eslint/no-unused-vars). The per-expectation describe.each(observableHere…) block below also registers no tests now, since every base expectation is accessibility-tree only and the Chromium self-test carries that proof.

@cixzhang
cixzhang dismissed humbertovirtudes’s stale review October 24, 2026 20:55

Both points are addressed on the current head: the sorted fixtures render Grace before Ada with a row-order check, and the row-status exclusion keeps its owner and reason.

@cixzhang
cixzhang merged commit be8e720 into main Oct 24, 2026
73 checks passed
@github-actions
github-actions Bot deleted the a11y-table-contract branch October 25, 2026 06:20

This branch was successfully deployed

1 active deployment
Preview — 492fbdb7 Deployed Oct 24, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants