Skip to content

Commit

Permalink
fix Step spacing (#485)
Browse files Browse the repository at this point in the history
* fix Step spacing

* ch
  • Loading branch information
felicio authored Sep 26, 2023
1 parent 452f779 commit 2ac9665
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .changeset/curvy-toys-clean.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@status-im/components': patch
---

fix Step spacing
6 changes: 3 additions & 3 deletions packages/components/src/step/step.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,17 +56,17 @@ export const AllVariants: Story = {
args: {},
render: () => (
<Stack space flexDirection="row">
<Stack space>
<Stack space alignItems="center">
<Step type="neutral" value={1} />
<Step type="neutral" value={10} />
<Step type="neutral" value={999} />
</Stack>
<Stack space>
<Stack space alignItems="center">
<Step type="complete" value={1} />
<Step type="complete" value={10} />
<Step type="complete" value={999} />
</Stack>
<Stack space>
<Stack space alignItems="center">
<Step type="active" value={1} />
<Step type="active" value={10} />
<Step type="active" value={999} />
Expand Down
8 changes: 5 additions & 3 deletions packages/components/src/step/step.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,20 +30,22 @@ export { Step }
export type { Props as StepProps }

const Base = styled(Stack, {
padding: 2,
paddingVertical: 1,
minWidth: 20,
maxWidth: 28,
display: 'inline-flex',
justifyContent: 'center',
alignItems: 'center',
flexBasis: 'fit-content',
width: 'fit-content',
})

const Content = styled(Stack, {
backgroundColor: '$white-100',
paddingHorizontal: 3,
paddingVertical: 0,
borderRadius: '$6',
minHeight: 18,
maxHeight: 18,
height: 18,
minWidth: 18,
maxWidth: 28,
justifyContent: 'center',
Expand Down

2 comments on commit 2ac9665

@vercel
Copy link

@vercel vercel bot commented on 2ac9665 Sep 26, 2023

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

status-web – ./apps/web

status-web.vercel.app
status-web-git-main-status-im-web.vercel.app
status-web-status-im-web.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 2ac9665 Sep 26, 2023

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

status-components – ./packages/components

status-components-git-main-status-im-web.vercel.app
status-components.vercel.app
status-components-status-im-web.vercel.app

Please sign in to comment.