Skip to content

Commit e2577d2

Browse files
committed
Fix theme color bugs in FilterPoint and PointerTracker
1 parent a56afe5 commit e2577d2

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/components/FilterPoint/FilterPoint.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ export const FilterPoint = ({
411411
const fillColor = zeroValue
412412
? zeroBackground || zeroPoint.background
413413
: dragging
414-
? dragBackground || colors?.[index]?.drag || bgColor
414+
? dragBackground || colors?.[index]?.dragBackground || bgColor
415415
: active || hovered
416416
? activeBackground || colors?.[index]?.activeBackground || bgColor
417417
: bgColor

src/components/PointerTracker/PointerTracker.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ export const PointerTracker = ({
147147
<rect
148148
width={freqWidth + 6}
149149
height={fontSizePadding}
150-
fill={backgroundColor}
150+
fill={fillColor}
151151
stroke={strokeColor}
152152
x={mouse.x - freqWidth / 2 - 3}
153153
y={height - fontSizePadding - 1}

src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export type GraphThemeFilterColors = {
7373
point?: CSSProperties['color']
7474
drag?: CSSProperties['color']
7575
active?: CSSProperties['color']
76-
// point background colors for each state
76+
// background colors for each state
7777
background?: CSSProperties['color']
7878
dragBackground?: CSSProperties['color']
7979
activeBackground?: CSSProperties['color']

0 commit comments

Comments
 (0)