Skip to content

Commit b5fd91d

Browse files
authored
Merge pull request #18 from raifdmueller/fix/tooltip-accent-line
Fix tooltip accent line and colors
2 parents 50e2805 + 5ba5e30 commit b5fd91d

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/components/RadarChart.jsx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -407,32 +407,31 @@ export default function RadarChart({
407407
width={tooltipW}
408408
height={tooltipH}
409409
rx={10}
410-
fill="var(--bg-card)"
410+
fill="#1e293b"
411411
stroke={tc}
412412
strokeWidth={1.5}
413413
filter="url(#tt-shadow)"
414414
/>
415-
<rect x={tipX} y={tipY} width={4} height={tooltipH} rx={4} fill={tc} />
416-
<text x={tipX + 14} y={tipY + 19} fill="var(--text-secondary)" fontSize="11" fontWeight="500">
415+
<text x={tipX + 14} y={tipY + 19} fill="#94a3b8" fontSize="11" fontWeight="500">
417416
{tooltip.label}
418417
</text>
419418
<text x={tipX + 14} y={tipY + 39} fill={tc} fontSize="19" fontWeight="800">
420419
{tooltip.value}
421-
<tspan fill="var(--text-muted)" fontSize="11" fontWeight="400">
420+
<tspan fill="#475569" fontSize="11" fontWeight="400">
422421
{" "}
423422
/ 4
424423
</tspan>
425424
</text>
426425
<polygon
427426
points={`${tipX + tooltipW / 2 - 7},${tipY + tooltipH} ${tipX + tooltipW / 2 + 7},${tipY + tooltipH} ${tipX + tooltipW / 2},${tipY + tooltipH + 10}`}
428-
fill="var(--bg-card)"
427+
fill="#1e293b"
429428
stroke={tc}
430429
strokeWidth={1.5}
431430
strokeLinejoin="round"
432431
/>
433432
<polygon
434433
points={`${tipX + tooltipW / 2 - 5},${tipY + tooltipH - 1} ${tipX + tooltipW / 2 + 5},${tipY + tooltipH - 1} ${tipX + tooltipW / 2},${tipY + tooltipH + 8}`}
435-
fill="var(--bg-card)"
434+
fill="#1e293b"
436435
/>
437436
</g>
438437
)}

0 commit comments

Comments
 (0)