You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
kit: MatrixGrid, cells over two axes that don't repeat their headings - #283
↑ Additive component; kit tests pass, with markup tests for marks, vacant cells, change regions, screen-reader names (including the present fallback), own content (0 shows; null, booleans, '' and lists of those mark) and the table's label. ↑ Copilot's points across five rounds are fixed and checked in Chromium: changes fade to plain cells at emphasis={0}, and presence and change cues survive forced-colors mode (screenshots at emphasis 1, 0.5 and 0). ↑ Markup is a plain table with th headings, which the repeated-headers craft check (#281) reads. ↓ In forced colors a removed cell or heading stays dashed at every emphasis, because an outline's style can't fade. ↓ No built-in uses it yet; the migration PR (#284) moves github-actions' matrix onto it and checks it in the browser.
Step 7 of the kit typography rollout. Stacked on #282 (base kit-type-roles-card-header); retarget to main once that merges.
MatrixGrid lays out cells over two axes: a matrix's runs by OS and compiler, flags by environment. The axes' names go once in the corner (os × compiler, in the label role), each axis's values once along its edge (code when code is set), and each cell shows only what its headings don't say. cell(row, column) returns {content?, change?, title?}, or null for an empty cell on the kit's hatch. A cell with no content shows a small mark, with title as its tooltip and its words for screen readers. Values and cells that arrive or leave are kit change regions; a removed one is dashed. caption sets several grids side by side, one per further dimension.
The first version of #268's matrix repeated both headings in every cell; this is the kit piece that makes the quiet version the easy one (light and dark):
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
Matrix cells retain change colors at zero emphasis, lack accessible labels for mark-only content, and incorrectly suppress presence marks for empty ReactNode values.
React renders true as nothing too, but shows(true) returns true. Consequently, {content: true} suppresses both the presence mark and the present fallback, leaving an occupied cell visually and accessibly blank. Treat both booleans as absent content while preserving numeric zero.
Keep presence markers visible in forced-colors mode
packages/renderers/kit/styles/matrix.css:62
Forced-colors mode suppresses CSS gradients and box shadows. Because the presence dot and vacant hatch are gradients, unchanged occupied and vacant cells then both appear blank, hiding which combinations exist. Add a forced-colors treatment using a text or bordered marker and system colors so presence remains distinguishable.
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
Forced-colors styling makes added, modified, and renamed cells indistinguishable from unchanged cells, leaving high-contrast users without status-specific change cues.
The axes' names go once in the corner, each axis's values once along its edge,
and a cell shows only what its headings don't: by default a small mark with
its whole name as a tooltip and for screen readers. Empty cells sit on the
kit's hatch; values and cells that arrive or leave are change regions.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
Empty or non-rendering content arrays suppress both the presence mark and accessible fallback, making occupied cells indistinguishable from vacant cells.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Agent assessment
Self-reported assessment, not an independent review.
Assessed revision:
d4b427987570266b7baa1a64bac121e48dd7b072presentfallback), own content (0shows;null, booleans,''and lists of those mark) and the table's label.↑ Copilot's points across five rounds are fixed and checked in Chromium: changes fade to plain cells at
emphasis={0}, and presence and change cues survive forced-colors mode (screenshots at emphasis 1, 0.5 and 0).↑ Markup is a plain table with
thheadings, which therepeated-headerscraft check (#281) reads.↓ In forced colors a removed cell or heading stays dashed at every emphasis, because an outline's style can't fade.
↓ No built-in uses it yet; the migration PR (#284) moves
github-actions' matrix onto it and checks it in the browser.Step 7 of the kit typography rollout. Stacked on #282 (base
kit-type-roles-card-header); retarget tomainonce that merges.MatrixGridlays out cells over two axes: a matrix's runs by OS and compiler, flags by environment. The axes' names go once in the corner (os × compiler, in thelabelrole), each axis's values once along its edge (code whencodeis set), and each cell shows only what its headings don't say.cell(row, column)returns{content?, change?, title?}, ornullfor an empty cell on the kit's hatch. A cell with nocontentshows a small mark, withtitleas its tooltip and its words for screen readers. Values and cells that arrive or leave are kit change regions; a removed one is dashed.captionsets several grids side by side, one per further dimension.The first version of #268's matrix repeated both headings in every cell; this is the kit piece that makes the quiet version the easy one (light and dark):