Skip to content

Commit 54c4ab0

Browse files
author
Luke Bowerman
authored
fix: RangeSlider & Slider properly display on inverted themes (#1853)
1 parent bc2a747 commit 54c4ab0

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

packages/components/src/Form/Inputs/RangeSlider/RangeSlider.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -428,8 +428,7 @@ interface ThumbLabelProps extends TypographyProps {
428428
}
429429

430430
const ThumbLabel = styled.div<ThumbLabelProps>`
431-
background: ${({ theme, focus }) =>
432-
focus ? theme.colors.keyAccent : `rgba(255, 255, 255, 0.8)`};
431+
background: ${({ theme, focus }) => focus && theme.colors.keyAccent};
433432
border-radius: 1rem;
434433
color: ${({ theme: { colors }, disabled }) =>
435434
disabled ? colors.neutral : colors.key};

packages/components/src/Form/Inputs/Slider/Slider.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,8 +248,7 @@ interface SliderValueProps extends SliderInputProps {
248248
}
249249

250250
const SliderValue = styled.div<SliderValueProps>`
251-
background: ${({ theme, isFocused }) =>
252-
isFocused ? theme.colors.keyAccent : theme.colors.keyText};
251+
background: ${({ theme, isFocused }) => isFocused && theme.colors.keyAccent};
253252
border-radius: 1rem;
254253
color: ${({ theme: { colors }, disabled }) =>
255254
disabled ? colors.neutral : colors.key};

0 commit comments

Comments
 (0)