Skip to content

Commit 2b12419

Browse files
authored
fix(Space): items alignment (#140)
1 parent 1afaaf3 commit 2b12419

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

.changeset/chilly-dots-tell.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@cube-dev/ui-kit": patch
3+
---
4+
5+
fix(Space): items alignment

src/components/layout/Space.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ const SpaceElement = tasty({
1616
'': 'row',
1717
vertical: 'column',
1818
},
19-
alignItems: {
20-
'': 'center',
19+
placeItems: {
20+
'': 'center stretch',
2121
vertical: 'stretch',
2222
},
2323
},

src/components/pickers/Menu/Menu.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export const Default = ({ ...props }) => {
7070
<Space
7171
gap="10x"
7272
placeContent="start start"
73-
alignItems="start"
73+
placeItems="start"
7474
height="400px"
7575
>
7676
{menu}

src/stories/Typography.stories.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Paragraphs with gaps between them.
5656

5757
<Canvas>
5858
<Story name="Text">
59-
<Space flow="row wrap" preset="t3">
59+
<Space flow="row wrap" preset="t3" placeItems="baseline">
6060
<Text>Normal label</Text>
6161
<Text.Success>Success label</Text.Success>
6262
<Text.Danger>Danger label</Text.Danger>

0 commit comments

Comments
 (0)