Skip to content

Commit 41aac7c

Browse files
committed
fix(slider): fix thumb positioning
1 parent 0df05d0 commit 41aac7c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Slider/Slider.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ const Wrapper = styled.div`
9797
height: ${size};
9898
margin-right: 1.5rem;
9999
&:before {
100-
left: -2px;
100+
left: -6px;
101101
top: -15px;
102102
height: calc(100% + 30px);
103103
width: ${({ hasMarks }) => (hasMarks ? '41px' : '39px')};
@@ -159,11 +159,13 @@ const Thumb = styled.span`
159159
? css`
160160
width: 32px;
161161
height: 18px;
162+
right: 2px;
162163
transform: translateY(-50%);
163164
`
164165
: css`
165166
height: 32px;
166167
width: 18px;
168+
top: 2px;
167169
transform: translateX(-50%);
168170
`}
169171
${({ variant }) =>

0 commit comments

Comments
 (0)