Skip to content

feat(Table): table rows expose their stripe to themes (parity, striped) - #12368

Closed
josephfarina wants to merge 13 commits into
mainfrom
core-table-row-parity
Closed

josephfarina wants to merge 13 commits into
mainfrom
core-table-row-parity

Conversation

@josephfarina

@josephfarina josephfarina commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Themes can now style a table's stripes. A body row of a data-driven Table says which stripe it is, and a row of an isStriped table says the table is striped, so a theme can stripe odd rows (the classic first-row-shaded zebra), restyle Core's even stripe, or style only the tables an app chose to stripe.

defineTheme({
  name: 'classic',
  components: {
    'table-row': {
      'parity:odd+striped': {backgroundColor: '#f9f9f9'},
    },
  },
});

What changes

  • Body rows of a data-driven table carry data-parity="odd" (first, third, … row) or "even", counted from 1 in display order from the row's index. An open expansion panel never counts, a windowed table counts logical rows, and re-sorted data takes the stripe of its new place.
  • Every row an isStriped table may stripe carries data-striped="striped": body rows and footer rows, not the header row. A theme's striped-row rule then reaches every row Core paints with its stripe, a footer's total row included.
  • Header and footer rows carry no parity, a row outside a Table carries neither, and a table nested in a body cell starts outside any body.
  • Rows a caller places in a TableBody (children mode) carry striped but no parity: their position is the caller's, and Core would have to inspect the children tree to count it, so it does not guess.
  • A pinned column (useTableStickyColumns) follows a theme's row stripe and hover: table-row gets the derived variable backgroundColor → --table-row-overlay (the private variable pinned cells already replay), so a theme writes only backgroundColor. Core's theme build now gives a style key's pseudo-class blocks (:hover) the same derived variables as its resting rule; every official theme's generated CSS is byte-identical.
  • Core's own stripe is unchanged (--color-background-muted on even rows), and no styling output changes.

Record

  • Table.doc.mjs theming targets: table-row gains the striped state and the parity visual prop. The isStriped description names the stripes in plain words (alternate rows, every other row, zebra striping) and the targets that restyle them.
  • TableRow spec: new FR6, public concepts and verification rows; both attributes are public theme surface.
  • [feat] changeset.

Tests

TableRowParity.test.tsx: first row odd; re-sort; open expansion panel; windowed table; striped vs plain; the header row; footer rows (striped, no parity); a table nested in a data-driven row; outside a Table; children mode; a pinned column; and a theme parity:odd+striped rule matching exactly the odd rows of the striped table.

Size

Gzip per page: the table page +0.1 KB; every other page +0.0 KB.

Writing rubric results

Records changed: docs/specs/components/Table/TableRow.spec.md and docs/architecture/theme-compilation.md.

  • R1 narration: two found. Both TableRow compatibility lines said a theme's row background "now also" reaches pinned cells; rewritten in the present tense ("also reaches pinned cells").
  • R2 research in the record: none.
  • R3 evidence naming a change: none; FR6's basis is "Current source and tests" and its verification cites TableRowParity.test.tsx.
  • R4 rejected alternatives over one line or outside a decision: none recorded.
  • R5 pull request or issue references remaining: none.
  • R6 ruled open questions still listing options: none; both records' open questions are unchanged.
  • R7 project status (build status or work order): one found and removed: theme-compilation's known gap "Nested pseudo component declarations bypass derived expansion" no longer holds and is deleted; the "Owning code" bullet for derivedVarRegistry.ts states what lowers (pseudo-class blocks), that it happens after the boundary check (INV13) reads their declarations as authored, and that pseudo-element blocks are written as authored. The FR6 verification row keeps one Gap: line in the required form.

look gate v1.16 light+dark at 8bf6275/5ff556a07b6: no new problems caused (3 pre-existing judge findings, pixel-identical on base, filed); 112 base problems fixed

@vercel

vercel Bot commented Nov 17, 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 Nov 19, 2026 6:13am UTC

Request Review

@astracat-bot

astracat-bot Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Nov 19, 2026, 6:30 AM UTC

@josephfarina
josephfarina marked this pull request as ready for review November 17, 2026 17:06
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 17, 2026
@github-actions github-actions Bot added the needs:design-review Affects visuals — Design should review label Nov 17, 2026
@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Nov 17, 2026
@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

🔎 Preview · 8bf6275

⏳ Building… Until it's ready, Storybook · Sandbox open the branch's previous preview.

Current run: The current CI run concluded cancelled. Current analysis is unavailable.


Generated by PR Enrichment workflow | View current CI run

@josephfarina

Copy link
Copy Markdown
Contributor Author

Owner decision (engineering owner, covering this pull request): in data mode, each Table body row carries its parity (odd or even, counted from 1 over body rows), and every row of an isStriped table carries the striped state, so a theme can choose which rows to stripe and stripe only tables that opt in. Children mode carries striped but not parity, because counting children would need React introspection that Core's lint forbids; the TableRow record states this. The default look is unchanged.

@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec b7fc6f6

@github-actions github-actions Bot removed the needs:spec-owner-review Current knowledge records await owner approval label Nov 17, 2026
@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec d6bdcda

@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.

Requesting changes. The stripe surface itself is approved and works for ordinary data-driven tables, but three fixes are needed before it ships.

  • Retitle the pull request to feat(Table): … or add a ## Scope section with Components: Table, because the table-row target change and the new data-parity and data-striped attributes are Table API that the core scope does not name.
  • Make a theme's parity stripe reach pinned columns, or state in FR6, the changeset and the isStriped doc that it does not, because with useTableStickyColumns the pinned cell of a themed odd row stays white while the rest of the row takes the theme colour.
  • Reword the isStriped description in Table.doc.mjs so it no longer promises parity to children-mode tables, whose rows carry only striped.

The new tests fail on the base and pass on this head, and the default striped table renders pixel-identical before and after. Two optional comment rewrites are left inline.

Claims and files checked

Review mode: full; reason: no-earlier-review

  • Claim: body rows of a data-driven table carry odd or even parity, counted from 1 in display order by row index: verified (new tests; browser attributes).
  • Claim: an open expansion panel never counts, a windowed table counts logical rows, and re-sorted data takes its new place's stripe: verified (new tests).
  • Claim: body rows of a striped table carry the striped state, and plain tables do not: verified (new tests).
  • Claim: header, footer, outside-Table and nested-table rows carry neither attribute: verified (new tests).
  • Claim: children-mode rows carry striped but no parity: verified (new test; browser).
  • Claim: a theme can style either stripe, for example parity:odd+striped: verified for ordinary cells (test selector, browser frames for odd and even rules); false for pinned columns.
  • Claim: Core's own stripe stays on even rows and no styling output changes: verified (no style change; identical frames).
  • Claim: the table-row target gains the striped state and the parity visual prop: verified (Table.doc.mjs, generated API delta).
  • Claim: the TableRow record gains FR6, public concepts and a verification row: verified.
  • Claim: the isStriped doc names the stripe targets for any striped table: false for children mode.
  • Claim: the changeset is a [feat] patch: verified against the repository's changeset rules.
  • File .changeset/table-row-parity.md: clear.
  • File docs/specs/components/Table/TableRow.spec.md: FR6 promises theme stripes that pinned columns do not show.
  • File packages/core/src/Table/BaseTable.tsx: clear; optional comment rewrite.
  • File packages/core/src/Table/Table.doc.mjs: isStriped wording overstates children mode.
  • File packages/core/src/Table/Table.tsx: clear.
  • File packages/core/src/Table/TableBody.tsx: clear.
  • File packages/core/src/Table/TableRow.tsx: clear; optional comment rewrite.
  • File packages/core/src/Table/TableRowParity.test.tsx: clear.
  • File packages/core/src/Table/TableRowPlacementContext.ts: clear.
  • File packages/themes/probe/src/probeTheme.ts: clear (regenerated and current).

Automated review (maintainer link)

Comment thread packages/core/src/Table/Table.doc.mjs Resolved
Comment thread packages/core/src/Table/TableRow.tsx Resolved
Comment thread packages/core/src/Table/BaseTable.tsx Resolved
@josephfarina josephfarina changed the title feat(core): table rows expose their stripe to themes (parity, striped) feat(Table): table rows expose their stripe to themes (parity, striped) Nov 17, 2026
@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 83d9dd3

@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 Nov 17, 2026
@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 57f5976

@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.

Changes requested. The row stripe surface and the pinned-column fix work as described, but the theme-compiler change that carries the hover needs two corrections.

  • generateThemeRules.ts:1434 lowers pseudo-element blocks (::before, ::after, ::backdrop) as well as pseudo-classes, so a custom theme's padding, width or height there is replaced by a variable the pseudo-element never reads (Card ::before padding now compiles to --astryx-card-padding alone); limit the lowering to pseudo-class keys and add a fixture.
  • The theme-compilation record asks that routing nested pseudo blocks through the lowering path come with fixtures for a normal mapping, replaces and container padding, but only the table-row mapping is tested and the record still lists "Nested pseudo component declarations bypass derived expansion" as open; add the fixtures to generateThemeRules.test.ts and remove or narrow that entry.

The three earlier findings are fixed: the title is scoped to Table, pinned cells follow a themed stripe and hover, and the isStriped doc no longer promises parity to children-mode tables. Wording suggestions for the changeset, the TableRow compatibility line and one code comment are inline. CI did not run on this head because its admission step reported the queue full, so it needs a re-run.

Claims and files checked

Review mode: full; reason: spec-record

  • Claim: data-driven body rows carry odd or even parity, counted from 1 by row index: verified (TableRow.tsx:233-250, BaseTable.tsx:1115-1153, parity tests).
  • Claim: an open expansion panel never counts, windowed tables count logical rows, re-sorted rows take their new stripe: verified (expansion, windowed and reorder tests).
  • Claim: body rows of a striped table carry the striped state; header, footer, outside-Table and nested-table rows carry neither: verified (tests).
  • Claim: children-mode rows carry striped but no parity: verified (children-mode test).
  • Claim: a pinned column follows a theme's row stripe and hover through a derived variable: verified (browser frames; pinned-column test).
  • Claim: the theme build gives pseudo-class blocks the same derived variables as the resting rule: verified, but it also applies container padding and replaces and reaches pseudo-elements (first finding).
  • Claim: every official theme's generated CSS is byte-identical: verified for the seven published themes.
  • Claim: Core's own stripe is unchanged: verified (even rows render the same colour on base and head); themed output changes as the changeset says.
  • Claim: the doc's theming targets gain the striped state and parity visual prop, and the isStriped description names the stripes: verified (Table.doc.mjs:142-159, :229-233).
  • Claim: the TableRow record gains FR6, concepts and verification rows: verified.
  • Claim: the [feat] changeset is valid: verified (changeset check passes).
  • File .changeset/table-row-parity.md: non-blocking wording note.
  • File docs/architecture/theme-compilation.md: second finding.
  • File docs/specs/components/Table/TableRow.spec.md: non-blocking wording note.
  • File packages/core/src/Table/BaseTable.tsx: clear.
  • File packages/core/src/Table/Table.doc.mjs: clear.
  • File packages/core/src/Table/Table.tsx: clear.
  • File packages/core/src/Table/TableBody.tsx: clear.
  • File packages/core/src/Table/TableRow.tsx: clear.
  • File packages/core/src/Table/TableRowParity.test.tsx: clear.
  • File packages/core/src/Table/TableRowPlacementContext.ts: clear.
  • File packages/core/src/theme/derivedVarRegistry.test.ts: clear.
  • File packages/core/src/theme/derivedVarRegistry.ts: clear.
  • File packages/core/src/theme/generateThemeRules.ts: first finding; non-blocking comment note.
  • File packages/themes/probe/src/probeTheme.ts: clear (generated, check passes).

Automated review (maintainer link)

Comment thread docs/architecture/theme-compilation.md Resolved
@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec ba62abc

@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.

Approved pending CI: the CI workflow has not run on this head (its commit message carries [skip ci]), so the required build, typecheck and test checks still need a run before merge.

Theme authors can now style either stripe of a data-driven table and only striped tables, and a pinned column follows a themed row fill at rest and on hover. Default and published themes render exactly as before.

Non-blocking:

  • The changeset's two-rule zebra example also overrides Core's hover on striped rows in a hasHover table; one clause, or a ':hover' block in the same key, would save theme authors the surprise.
  • The comments at generateThemeRules.ts:1134-1136 and :1141-1144 still read as the open threads describe (a parenthetical with no verb; one 33-word sentence with two passives).
Claims and files checked

Review mode: full; reason: rebase

  • Claim: data-driven body rows carry odd or even parity from the row index, first row odd; an open expansion panel never counts, a windowed table counts logical rows, re-sorted data takes its new place — verified (BaseTable.tsx:1114-1153, TableRowPlacementContext.ts:55-57, TableRowParity.test.tsx).
  • Claim: body rows of a striped table carry the striped state — verified (TableRow.tsx:242-249, tests).
  • Claim: header, footer, standalone and nested-table rows carry neither — verified (TableRow.tsx:236, Table.tsx:392-393, tests).
  • Claim: children-mode rows carry striped but no parity — verified (TableBody.tsx:38-43, test).
  • Claim: a pinned column follows a theme's row stripe and hover through the derived row-overlay variable, so a theme writes only the background — verified (derivedVarRegistry.ts:100, test, Chromium).
  • Claim: the theme build lowers pseudo-class blocks like the resting rule (derived variables, container padding, replacements) and writes pseudo-element blocks as authored — verified (generateThemeRules.ts:1131-1177; four fixtures fail on the base).
  • Claim: every published theme's generated CSS is byte-identical — verified (seven built theme stylesheets compared).
  • Claim: Core's own stripe and the default look are unchanged — verified (Core stylesheet byte-identical; default frames pixel-identical).
  • Claim: the changeset's zebra example clears Core's even stripe — verified (Chromium: even rows and their pinned cells transparent).
  • Claim: the Table doc adds the striped state and parity prop and describes striping in plain words with its targets — verified (Table.doc.mjs:143-146, :229-233).
  • Claim: the TableRow record adds the requirement, public concepts and a verification row, and names both attributes as public theme surface — verified (record at the head).
  • Claim: the new tests cover first row, re-sort, expansion panel, windowing, striped and plain, header, footer and nested rows, outside a Table, children mode, a pinned column and a theme rule — verified (eight of them fail on the base).
  • Claim: first-load gzip grows 0.1 KB on the table page and nothing elsewhere — verified (Table +139 B; nine other entries +0 B).
  • Claim: writing fixes: compatibility lines in the present tense, the theme-compilation gap removed, the owning-code line names what lowers and that pseudo-elements stay as authored, one gap line in the verification row — verified (records at the head; the authored-first boundary order lives in the code).
  • Claim: the changeset is a Core patch tagged as a feature — verified.
  • Files: .changeset/table-row-parity.md note (hover clause); docs/architecture/theme-compilation.md clear; docs/specs/components/Table/TableRow.spec.md clear; BaseTable.tsx clear; Table.doc.mjs clear; Table.tsx clear; TableBody.tsx clear; TableRow.tsx clear; TableRowParity.test.tsx clear; TableRowPlacementContext.ts clear; derivedVarRegistry.ts clear; derivedVarRegistry.test.ts clear; generateThemeRules.ts two comment-style notes; generateThemeRules.test.ts clear; probeTheme.ts clear (generated; its check passes).

Automated review (maintainer link)

…e nested-table test guards the reset; comments

[skip ci]
@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Nov 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.

Changes requested, and approval also waits on a spec-owner decision for this head.

The stripe surface works as described: data-parity and data-striped reach the right rows, a theme's parity:odd+striped rule matches exactly the odd rows of a striped table, and a themed row fill reaches a pinned column. Two things block.

  • docs/specs/components/Table/TableRow.spec.md:161 (the FR6 verification row) still expects a check to fail on "either attribute on a header, footer or nested header row", but FR6 and TableRowParity.test.tsx:271 now require data-striped on every footer row of a striped table, so a check written from that row would reject correct output; narrow it to data-parity on a footer row.
  • Miss: the pull request description's writing-rubric R7 line says the theme-compilation Owning-code bullet states that pseudo-class blocks lower after the boundary check reads the declarations as written; docs/architecture/theme-compilation.md:371-374 says nothing about that order, which lives only in generateThemeRules.ts:1143-1159 — drop the clause or put the order in the record line.

Separately, approval needs an engineering owner to approve the knowledge records at the head being merged: the last /approve-spec names an earlier head, the spec-owner-approval status is still waiting, and this head rewrote FR6 so footer rows carry striped while FR2 names even body rows only. An engineering owner records the decision by commenting /approve-spec <full head SHA> on the pull request; the author may do so if they are an engineering owner. Note also that CI has not run on this head: its commit message carries [skip ci], so the required build, typecheck and test checks still need a run before merge.

Non-blocking: the changeset's two-rule zebra example also replaces Core's hover highlight on striped rows in a hasHover table, which it does not mention; and the comments at generateThemeRules.ts:1132-1138, :1143-1146 and TableRow.tsx:233-234 read long or verbless against the comment style rule.

Claims and files checked

Review mode: full; reason: spec-record

  • Claim: data-driven body rows carry odd or even parity from the row index, first row odd, with an open expansion panel never counted, a windowed table counting logical rows and re-sorted data taking its new place — verified (BaseTable.tsx:1114-1156, TableRowPlacementContext.ts:53-55, TableRowParity.test.tsx).
  • Claim: every row a striped table may stripe, body and footer rows but not the header row, carries the striped state — verified (TableRow.tsx:242, tests, browser frames).
  • Claim: header, standalone and nested-table rows carry neither attribute — verified (Table.tsx:393, tests).
  • Claim: children-mode rows carry striped but no parity — verified (TableBody.tsx:41, test).
  • Claim: a pinned column follows a theme's row stripe and hover through the derived row-overlay variable — verified (derivedVarRegistry.ts:100, test, Chromium).
  • Claim: the theme build lowers pseudo-class blocks like the resting rule (derived variables, container padding, replacements) and writes pseudo-element blocks as authored — verified (generateThemeRules.ts:1139-1168; four fixtures fail on the base).
  • Claim: Core's own stripe and the default look are unchanged, and every published theme's generated CSS is byte-identical — verified (Core stylesheet and seven theme stylesheets compared).
  • Claim: the zebra example's second rule clears Core's even stripe — verified (Chromium: even rows and their pinned cells transparent).
  • Claim: the Table doc adds the striped state and parity prop and describes striping in plain words with its targets — verified (Table.doc.mjs:142-146, :229-233).
  • Claim: the TableRow record adds the requirement, public concepts and a verification row, and names both attributes as public theme surface — verified at the head, except the verification row above.
  • Claim: the tests cover first row, re-sort, expansion panel, windowing, striped and plain, header, footer, nested and standalone rows, children mode, a pinned column and a theme rule — verified (12 tests, 10 fail on the base).
  • Claim: first-load gzip grows 0.1 KB on the table page and nothing elsewhere — verified (Table 117.5 KB to 117.7 KB; nine other entries unchanged).
  • Claim: writing fixes — compatibility lines in the present tense, the theme-compilation gap removed, one gap line in the FR6 verification row — verified; the R7 claim about the Owning-code line is false (above).
  • Claim: the changeset is a Core patch tagged as a feature — verified.
  • Files: .changeset/table-row-parity.md note; docs/architecture/theme-compilation.md awaiting owner approval; docs/specs/components/Table/TableRow.spec.md finding at line 161, awaiting owner approval; BaseTable.tsx clear; Table.doc.mjs clear; Table.tsx clear; TableBody.tsx clear; TableRow.tsx comment note; TableRowParity.test.tsx clear; TableRowPlacementContext.ts clear; derivedVarRegistry.ts clear; derivedVarRegistry.test.ts clear; generateThemeRules.ts two comment notes; generateThemeRules.test.ts clear; probeTheme.ts clear (generated; its check passes).

Automated review (maintainer link)

Comment thread packages/core/src/Table/TableRow.tsx Resolved
Comment thread .changeset/table-row-parity.md Resolved
…ty lines match footer rows' striped state; hover note in the zebra example

[skip ci]
@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 5a71e16

@github-actions github-actions Bot removed the needs:spec-owner-review Current knowledge records await owner approval label Nov 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.

Changes requested for one record line; the code works as described, and the knowledge records are approved for this head.

  • docs/specs/components/Table/TableRow.spec.md:162 (the FR6 verification row) makes a check fail on data-parity or data-striped on a nested table's rows, but FR6 resets a nested Table to outside any body, so a nested data-driven or striped table carries its own parity and striped; narrow it to "the outer table's stripe on a nested table's rows".

Fixing that line edits a record, so the new head needs a fresh /approve-spec <full head SHA> from an engineering owner, and CI, skipped on this head by [skip ci], still has to run before merge. Non-blocking: the isStriped doc puts the wash on "the even-numbered body rows", while Core also paints a footer's even rows. Three comments in generateThemeRules.ts and TableRow.tsx still read long or verbless (open threads).

Claims and files checked

Review mode: full; reason: spec-record

  • Claim: a data-driven table's body rows carry odd or even parity, counted from 1 by row index; an open expansion panel never counts, a windowed table counts logical rows, and re-sorted data takes the stripe of its new place — verified (BaseTable.tsx:1115-1153, TableRowPlacementContext.ts:48-50, tests).
  • Claim: every row a striped table may stripe, body and footer rows but not the header row, carries the striped state, so a theme's striped rule reaches a footer's total row — verified (TableRow.tsx:240-243, tests, browser frames).
  • Claim: header and footer rows carry no parity, a row outside a Table carries neither, and a nested table starts outside any body — verified (Table.tsx:393-406, tests).
  • Claim: rows placed in a table body by the caller carry striped but no parity — verified (TableBody.tsx:41-43, test).
  • Claim: a pinned column follows a theme's row stripe and hover through the derived row-overlay variable — verified (derivedVarRegistry.ts:100, Table.doc.mjs:159, test, browser frames).
  • Claim: the theme build lowers pseudo-class blocks like the resting rule (derived variables, container padding, replacements) and writes pseudo-element blocks as written — verified (generateThemeRules.ts:1139-1179, new fixtures).
  • Claim: Core's own stripe is unchanged and every official theme's generated CSS is byte-identical — verified (Core stylesheet and seven theme stylesheets compared).
  • Claim: the changeset's zebra example clears Core's even stripe and, in a hover table, replaces Core's hover unless the theme adds its own — verified (browser frames; theme rules sit above Core's styles).
  • Claim: the Table doc adds the striped state and the parity prop, and describes striping in plain words with its targets — verified, with a non-blocking wording note on footer rows (Table.doc.mjs:232).
  • Claim: the TableRow record adds the requirement, two public concepts and a verification row, and names both attributes as public theme surface — verified, except the verification row (TableRow.spec.md:162).
  • Claim: the tests cover the first row, re-sort, expansion panel, windowing, striped and plain, header, footer, nested and standalone rows, children mode, a pinned column and a theme rule — verified (12 tests pass).
  • Claim: first-load gzip grows 0.1 KB on the table page and nothing on other pages — verified (Table 117.5 KB to 117.7 KB; nine other entries unchanged).
  • Claim: writing fixes — present-tense compatibility lines, the theme-compilation gap removed, the lowering line stating the boundary-check order and pseudo-elements, one gap line in the FR6 verification row — verified (theme-compilation.md:371-375, TableRow.spec.md:42, :59-64, :162).
  • Claim: the changeset is a Core patch tagged as a feature — verified (changeset check passes).
  • Files: .changeset/table-row-parity.md clear; docs/architecture/theme-compilation.md clear; docs/specs/components/Table/TableRow.spec.md finding at line 162; BaseTable.tsx clear; Table.doc.mjs wording note; Table.tsx clear; TableBody.tsx clear; TableRow.tsx comment note; TableRowParity.test.tsx clear; TableRowPlacementContext.ts clear; derivedVarRegistry.ts clear; derivedVarRegistry.test.ts clear; generateThemeRules.ts two comment notes; generateThemeRules.test.ts clear; probeTheme.ts clear (generated; its check passes).

Automated review (maintainer link)

Comment thread packages/core/src/Table/Table.doc.mjs Resolved
…ripes; isStriped names footer rows; comment wording
@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Nov 19, 2026
@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 8bf6275

@github-actions github-actions Bot removed the needs:spec-owner-review Current knowledge records await owner approval label Nov 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.

Approved pending CI: CI has not run on this head yet, so its required checks still have to pass before merge.

The last commit fixes the FR6 verification row for nested tables and the footer wording in the isStriped doc, and an engineering owner approved the TableRow and theme-compilation records for this head. Table rows carry data-parity and data-striped as FR6 describes, a themed row fill and :hover reach pinned columns, and Core's stylesheet and the seven published themes compile unchanged.

Claims and files checked

Review mode: full; reason: spec-record

  • Changeset: a data-driven table's body rows carry odd or even parity — verified (TableRow.tsx:240-243, BaseTable.tsx:1115-1117, tests).
  • Changeset: every row a striped table may stripe, body and footer rows but not the header row, carries the striped state — verified (TableRow.tsx:242, tests, browser probe).
  • Changeset: the zebra example's second rule clears Core's even stripe, and stripe rules replace Core's hover unless they add their own — verified (browser probe; theme rules outrank Core's rules).
  • Changeset: Core's own stripe stays on even rows and the default look is unchanged — verified (Core's stylesheet byte-identical).
  • Changeset: rows a caller places in a table body carry striped but no parity — verified (TableBody.tsx:41-43, test, browser probe).
  • Changeset: a theme's row background, at rest or on hover, reaches a pinned column — verified (derivedVarRegistry.ts:100, test, browser probe).
  • Changeset: the theme build lowers pseudo-class blocks like the resting rule and writes pseudo-element blocks as written — verified (generateThemeRules.ts:1139-1178, six fixtures).
  • Changeset: a Core patch tagged as a feature — verified (changeset check passes).
  • Description: parity counts from 1 by display index, skips expansion panels, follows logical rows when windowed and the new place after a re-sort — verified (tests).
  • Description: header and footer rows carry no parity, a row outside a Table carries neither, and a nested table starts outside any body — verified (Table.tsx:393-406, tests).
  • Description: every official theme's generated CSS is byte-identical, and Core's own stripe is unchanged — verified (seven theme stylesheets and Core's stylesheet compared).
  • Description: the Table doc adds the striped state and the parity prop, and describes striping in plain words with its targets — verified (Table.doc.mjs:142-159, :232).
  • Description: the TableRow record adds the requirement, two concepts and a verification row, and names both attributes as public theme surface — verified (TableRow.spec.md:93-94, :105, :162).
  • Description: the tests cover the first row, re-sort, expansion panel, windowing, striped and plain, header, footer, nested and standalone rows, children mode, a pinned column and a theme rule — verified (12 tests pass).
  • Description: first-load gzip grows 0.1 KB on the table page and nothing elsewhere — verified (Table 117.5 KB to 117.7 KB; nine other entries unchanged).
  • Description: writing fixes — present-tense compatibility lines, the theme-compilation gap removed, the lowering line naming the boundary-check order and pseudo-elements, one gap line in the FR6 verification row — verified (TableRow.spec.md:42, :59-64, :162; theme-compilation.md:371-375).
  • Files: .changeset/table-row-parity.md clear; docs/architecture/theme-compilation.md clear; docs/specs/components/Table/TableRow.spec.md clear; BaseTable.tsx clear; Table.doc.mjs clear; Table.tsx clear; TableBody.tsx clear; TableRow.tsx clear; TableRowParity.test.tsx clear; TableRowPlacementContext.ts clear; derivedVarRegistry.ts clear; derivedVarRegistry.test.ts clear; generateThemeRules.ts clear; generateThemeRules.test.ts clear; probeTheme.ts clear (generated; its check passes).

Automated review (maintainer link)

josephfarina added a commit that referenced this pull request Nov 19, 2026
- #12452 fix(AppShell): with the standard width points, a server-rendered top nav hides its start and center content on a phone before its script runs
  Author: @josephfarina
- #12368 feat(Table): table rows expose their stripe to themes (parity, striped)
  Author: @josephfarina
- #12646 fix(themes): a plain table's rows keep their text; only a striped table's rows take the stripe's
  Author: @josephfarina
@josephfarina

Copy link
Copy Markdown
Contributor Author

Landed in #12894.

@github-actions
github-actions Bot deleted the core-table-row-parity branch November 20, 2026 06:06

This branch was successfully deployed

1 active deployment
Preview — 8bf62758 Deployed Nov 19, 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. needs:design-review Affects visuals — Design should review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant