Size the catalog row skeleton to the row, drop the sparkline focus stop

The catalog's loading rows were 6 px shorter than the loaded ones, so the
groups below moved when a probe landed. The decorative score sparklines
sit in an aria-hidden wrapper, and Recharts' accessibility layer put a
focusable surface inside it.
This commit is contained in:
Marc-André Bombeck committed 2026-10-08 17:34:20 +02:00
1 parent fb3a13925d
commit 105c293544
2 files changed
+12 -3

No files matched your search

@@ -62,7 +62,14 @@ export function DeltaSparkline({
const hasComparison = data.some((point) => point.b !== undefined);
return (
<ResponsiveContainer width="100%" height="100%">
<AreaChart data={data} margin={{ top: 2, right: 0, bottom: 2, left: 0 }}>
{/* A sparkline is decoration inside an aria-hidden wrapper: without
the accessibility layer Recharts puts a focusable surface in it,
and a focus stop nobody can perceive is an axe failure. */}
<AreaChart
data={data}
margin={{ top: 2, right: 0, bottom: 2, left: 0 }}
accessibilityLayer={false}
>
<defs>
<linearGradient id={fillId} x1="0" y1="0" x2="0" y2="1">
<stop offset="0%" stopColor={strokeVar} stopOpacity={0.28} />