Skip to content

Commit 05b2c34

Browse files
committed
clean up, add link, change design to squares
1 parent eb885d1 commit 05b2c34

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

library/core-components/components/auto-layout/auto-layout-alignment.stories.tsx

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ const alignmentOptions = [
2929
*
3030
* ## Resources
3131
* [How Figma Alignment Works](https://help.figma.com/hc/en-us/articles/360040451373-Explore-auto-layout-properties#alignment)
32+
*
33+
* [RadiusAutoLayout Figma Specs](https://www.figma.com/file/ODAUZaQxH8oH2GI0A9MAVb/Radius-Booster---Auto-Layout?type=design&node-id=1302-3736&t=Fh2ap7gIybG92aBU-0)
3234
*/
3335
const meta: Meta<typeof RadiusAutoLayout> = {
3436
component: RadiusAutoLayout,
@@ -63,7 +65,7 @@ const meta: Meta<typeof RadiusAutoLayout> = {
6365
},
6466
args: {
6567
alignment: 'topLeft',
66-
direction: 'vertical',
68+
direction: 'horizontal',
6769
},
6870
};
6971

@@ -140,20 +142,20 @@ const AlignmentDemo = ({
140142
isParent
141143
>
142144
<RadiusAutoLayout
143-
width={direction === 'vertical' ? '80px' : '12px'}
144-
height={direction === 'vertical' ? '12px' : '80px'}
145+
width={25}
146+
height={25}
145147
fill={{ css: '#F7856E' }}
146148
style={{ zIndex: 1 }}
147149
/>
148150
<RadiusAutoLayout
149-
width={direction === 'vertical' ? '113px' : '12px'}
150-
height={direction === 'vertical' ? '12px' : '113px'}
151+
width={25}
152+
height={25}
151153
fill={{ css: '#F7856E' }}
152154
style={{ zIndex: 1 }}
153155
/>
154156
<RadiusAutoLayout
155-
width={direction === 'vertical' ? '65px' : '12px'}
156-
height={direction === 'vertical' ? '12px' : '65px'}
157+
width={25}
158+
height={25}
157159
fill={{ css: '#F7856E' }}
158160
style={{ zIndex: 1 }}
159161
/>

0 commit comments

Comments
 (0)