diff --git a/e2e/stories-a11y.known.json b/e2e/stories-a11y.known.json index 2891c6f6..66ac273d 100644 --- a/e2e/stories-a11y.known.json +++ b/e2e/stories-a11y.known.json @@ -4,11 +4,5 @@ "primitives-avatar--orbit (dark): color-contrast-unmeasured": "The orbit ring is positioned over the initials and hollowed by a mask; hit-testing finds its whole box and the sampler takes a mask as opaque, so the ground under the initials cannot be read.", "primitives-avatar--orbit (light): color-contrast-unmeasured": "The orbit ring is positioned over the initials and hollowed by a mask; hit-testing finds its whole box and the sampler takes a mask as opaque, so the ground under the initials cannot be read.", "primitives-avatar--stack-with-status (dark): color-contrast-unmeasured": "The orbit ring is positioned over the initials and hollowed by a mask; hit-testing finds its whole box and the sampler takes a mask as opaque, so the ground under the initials cannot be read.", - "primitives-avatar--stack-with-status (light): color-contrast-unmeasured": "The orbit ring is positioned over the initials and hollowed by a mask; hit-testing finds its whole box and the sampler takes a mask as opaque, so the ground under the initials cannot be read.", - "primitives-csv-table--resized-column (dark): color-contrast-unmeasured": "The selected range's outline is one box laid over its cells that paints only a border; hit-testing finds that box over the selected text and the sampler cannot follow a box that paints its edges alone, so the ground under the selected cells cannot be read.", - "primitives-csv-table--resized-column (light): color-contrast-unmeasured": "The selected range's outline is one box laid over its cells that paints only a border; hit-testing finds that box over the selected text and the sampler cannot follow a box that paints its edges alone, so the ground under the selected cells cannot be read.", - "primitives-csv-table--selection (dark): color-contrast-unmeasured": "The selected range's outline is one box laid over its cells that paints only a border; hit-testing finds that box over the selected text and the sampler cannot follow a box that paints its edges alone, so the ground under the selected cells cannot be read.", - "primitives-csv-table--selection (light): color-contrast-unmeasured": "The selected range's outline is one box laid over its cells that paints only a border; hit-testing finds that box over the selected text and the sampler cannot follow a box that paints its edges alone, so the ground under the selected cells cannot be read.", - "primitives-csv-table--sheets (dark): color-contrast-unmeasured": "The selected range's outline is one box laid over its cells that paints only a border; hit-testing finds that box over the selected text and the sampler cannot follow a box that paints its edges alone, so the ground under the selected cells cannot be read.", - "primitives-csv-table--sheets (light): color-contrast-unmeasured": "The selected range's outline is one box laid over its cells that paints only a border; hit-testing finds that box over the selected text and the sampler cannot follow a box that paints its edges alone, so the ground under the selected cells cannot be read." + "primitives-avatar--stack-with-status (light): color-contrast-unmeasured": "The orbit ring is positioned over the initials and hollowed by a mask; hit-testing finds its whole box and the sampler takes a mask as opaque, so the ground under the initials cannot be read." } diff --git a/src/ui/csv-table.tsx b/src/ui/csv-table.tsx index b34c9030..17ad9025 100644 --- a/src/ui/csv-table.tsx +++ b/src/ui/csv-table.tsx @@ -909,7 +909,9 @@ function CsvGrid({ }); // One outline around the whole range, drawn over the cells rather than as - // per-cell borders, which would also outline every inner edge. + // per-cell borders, which would also outline every inner edge. The box is + // invisible and only its four edge strips paint, so hit-testing the selected + // cells' text reaches the cells, not the box. useLayoutEffect(() => { const box = overlay.current; const frame = box?.parentElement; @@ -1438,8 +1440,13 @@ function CsvGrid({ ref={overlay} hidden aria-hidden - className="pointer-events-none absolute z-1 border-2 border-ring" - /> + className="pointer-events-none invisible absolute z-1 *:visible *:absolute *:bg-ring" + > +
+ + + + {view.length === 0 ? (