Skip to content

Commit 9a0a6da

Browse files
[LENS-1138] IE11 Range Slider Fix (#1348)
1 parent 2d127d4 commit 9a0a6da

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2323
- Update Space gap for consistent rendering across browsers
2424
- Set min-width on `InputText` to fix `Select` layout bug at small sizes
2525
- Resolve Slider style inconsistencies by rendering a div rather than the vanilla slider input
26+
- IE11 layout fixes
27+
- RangeSlider value labels now move with the thumb controls
2628

2729
### Changed
2830

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,8 @@ const ThumbLabel = styled.div<ThumbLabelProps>`
428428
position: absolute;
429429
text-align: center;
430430
top: -24px;
431-
transform: translateX(calc(${({ position = 0 }) => `${position}px`} - 50%));
431+
transform: translateX(${({ position = 0 }) => `${position}px`})
432+
translateX(-50%);
432433
user-select: none;
433434
z-index: ${({ focus }) => (focus ? 1 : 0)};
434435
`

0 commit comments

Comments
 (0)