Skip to content

Commit

Permalink
fix(slider): fix tick values alignment
Browse files Browse the repository at this point in the history
fix #180
  • Loading branch information
arturbien committed Jul 25, 2020
1 parent a9fa6e9 commit 8abdff8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Slider/Slider.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ const Mark = styled.div`
position: absolute;
bottom: 0;
left: 0;
line-height: 1;
font-size: 0.875rem;
${({ vertical }) =>
Expand Down
9 changes: 7 additions & 2 deletions src/Slider/Slider.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,14 @@ export const Default = () => (
size='300px'
min={0}
max={6}
step={1.5}
step={1}
defaultValue={0}
marks
marks={[
{ value: 0, label: '0°C' },
{ value: 2, label: '2°C' },
{ value: 4, label: '4°C' },
{ value: 6, label: '6°C' }
]}
orientation='vertical'
/>
</div>
Expand Down

1 comment on commit 8abdff8

@vercel
Copy link

@vercel vercel bot commented on 8abdff8 Jul 25, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.