Skip to content

Commit

Permalink
chore: slider: swaps hidetrack and hiderail references of segments
Browse files Browse the repository at this point in the history
  • Loading branch information
dkilgore-eightfold committed Jun 27, 2023
1 parent 41730a3 commit 515be11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Slider/Slider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,7 @@ export const Slider: FC<SliderProps> = React.forwardRef(
className={mergeClasses(styles.railMarkerSegment, {
[styles.data]: type === 'data',
[styles.active]:
!hideRail && isMarkerSegmentActive(mark.value),
!hideTrack && isMarkerSegmentActive(mark.value),
[styles.success]:
isMarkerSegmentActive(mark.value) &&
!!trackStatus &&
Expand All @@ -811,7 +811,7 @@ export const Slider: FC<SliderProps> = React.forwardRef(
(!!hideRail &&
!!hideTrack &&
isMarkerSegmentActive(mark.value)) ||
(!!hideTrack && !isMarkerSegmentActive(mark.value)),
(!!hideRail && !isMarkerSegmentActive(mark.value)),
})}
key={index}
onMouseDown={
Expand Down

0 comments on commit 515be11

Please sign in to comment.