Skip to content

Commit 1a5d1f4

Browse files
fix: fixed track point color
1 parent 731f3cc commit 1a5d1f4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/sliders/ui/slider-track-point/SliderTrackPoint.component.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,13 @@ interface SliderTrackProps extends Omit<PressableProps, 'onPress'> {
1818
const AnimatedPressable = Animated.createAnimatedComponent(Pressable);
1919

2020
export const SliderTrackPoint: React.FC<SliderTrackProps> = ({value, selectedValue, disableColorChange = false, onPress, style, ...props}) => {
21-
const {secondaryContainer, primary} = useTheme();
21+
const {secondaryContainer} = useTheme();
2222

2323
const handleTrackPointPress = () => onPress(value);
2424

2525
const trackPointAnimatedStyle = useAnimatedStyle(() => ({
26-
backgroundColor: !disableColorChange && isTrackPointSelected(value, selectedValue.value) ? secondaryContainer.background : primary.background,
26+
backgroundColor:
27+
!disableColorChange && isTrackPointSelected(value, selectedValue.value) ? secondaryContainer.background : secondaryContainer.text,
2728
}));
2829

2930
return (

0 commit comments

Comments
 (0)