Skip to content

Commit a5d7ec4

Browse files
committed
[polaris.shopify.com] Update alpha pages to use gap instead of spacing
1 parent 4012e6a commit a5d7ec4

16 files changed

+1261
-1261
lines changed

polaris.shopify.com/content/components/alpha-stack.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ examples:
1212
title: Default
1313
description: >-
1414
By default, stack is left aligned and stacked items are spaced with 16px in between.
15-
- fileName: alpha-stack-with-spacing.tsx
16-
title: Spacing
15+
- fileName: alpha-stack-with-gap.tsx
16+
title: Gap
1717
description: >-
18-
Spacing between stack child can be adjusted using the Space token.
18+
Gaps between stack children can be adjusted using the Space token.
1919
- fileName: alpha-stack-with-full-width-children.tsx
2020
title: Full width
2121
description: >-

polaris.shopify.com/content/components/columns.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ examples:
1212
title: Default
1313
description: >-
1414
By default, there are 6 columns with 16px spacing between them.
15-
- fileName: columns-with-varying-spacing.tsx
16-
title: Spacing
15+
- fileName: columns-with-varying-gap.tsx
16+
title: Gap
1717
description: >-
18-
Use the spacing prop to set the amount of space between columns.
18+
Use the gap prop to set the amount of space between columns.
1919
- fileName: columns-with-fixed-widths.tsx
2020
title: Column width
2121
description: >-

polaris.shopify.com/content/components/inline.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ examples:
1111
- fileName: inline-default.tsx
1212
title: Default
1313
description: >-
14-
Items are vertically centered with 16px of space around them. They’ll wrap onto multiple lines when needed.
14+
Items are vertically centered with 16px of space around them. They’ll wrap onto multiple lines when needed.
1515
- fileName: inline-with-non-wrapping.tsx
1616
title: Non-wrapping
1717
description: >-
1818
Use to create Inline where the children will not wrap to new rows on small screens.
19-
- fileName: inline-with-spacing.tsx
20-
title: Spacing
19+
- fileName: inline-with-gap.tsx
20+
title: Gap
2121
description: >-
22-
Use to control spacing of items in inline in standard increments.
22+
Use to control gaps around items in inline in standard increments.
2323
- fileName: inline-with-vertical-alignment.tsx
2424
title: Vertical alignment
2525
description: >-

polaris.shopify.com/content/components/tiles.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ status:
88
value: Alpha
99
message: This component is in development. There could be breaking changes made to it in a non-major release of Polaris. Please use with caution.
1010
examples:
11-
- fileName: tiles-with-spacing.tsx
12-
title: Spacing
11+
- fileName: tiles-with-gap.tsx
12+
title: Gap
1313
description: >-
14-
Use the spacing prop to set the amount of space between tiles.
14+
Use the gap prop to set the amount of space between tiles.
1515
- fileName: tiles-with-columns.tsx
1616
title: Columns
1717
description: >-

polaris.shopify.com/pages/examples/alpha-card-with-varying-padding.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {withPolarisExample} from '../../src/components/PolarisExampleWrapper';
44

55
function AlphaCardExample() {
66
return (
7-
<AlphaStack spacing="4" fullWidth>
7+
<AlphaStack gap="4" fullWidth>
88
<AlphaCard>
99
<Placeholder label="Content inside a card" />
1010
</AlphaCard>

polaris.shopify.com/pages/examples/alpha-stack-with-align.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {withPolarisExample} from '../../src/components/PolarisExampleWrapper';
66
function AlphaStackWithAlignExample() {
77
return (
88
<Page>
9-
<AlphaStack spacing="5" fullWidth>
9+
<AlphaStack gap="5" fullWidth>
1010
<AlphaStack align="start">
1111
<Placeholder width="320px" label="Start" childAlign="start" />
1212
<Placeholder width="320px" childAlign="start" />

polaris.shopify.com/pages/examples/alpha-stack-with-spacing.tsx renamed to polaris.shopify.com/pages/examples/alpha-stack-with-gap.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ import {AlphaStack, Text} from '@shopify/polaris';
33

44
import {withPolarisExample} from '../../src/components/PolarisExampleWrapper';
55

6-
function AlphaStackWithSpacingExample() {
6+
function AlphaStackWithGapExample() {
77
return (
88
<SpacingBackground width="320px">
9-
<AlphaStack spacing="5">
9+
<AlphaStack gap="5">
1010
<Placeholder width="320px" label="Stack child" />
1111
<Placeholder width="320px" />
1212
<Placeholder width="320px" />
@@ -61,4 +61,4 @@ const Placeholder = ({
6161
);
6262
};
6363

64-
export default withPolarisExample(AlphaStackWithSpacingExample);
64+
export default withPolarisExample(AlphaStackWithGapExample);

polaris.shopify.com/pages/examples/bleed-specific-direction.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {withPolarisExample} from '../../src/components/PolarisExampleWrapper';
55

66
function BleedSpecificDirectionExample() {
77
return (
8-
<AlphaStack spacing="6" fullWidth>
8+
<AlphaStack gap="6" fullWidth>
99
<Box background="surface" border="base" padding="5">
1010
<Bleed top="5">
1111
<Placeholder label="Top" />

polaris.shopify.com/pages/examples/box-with-padding.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function BoxWithPaddingExample() {
1111
<Placeholder label="All side padding" childAlign="center" />
1212
</Box>
1313
</div>
14-
<Inline spacing="4">
14+
<Inline gap="4">
1515
<div style={{backgroundColor: '#986BFF'}}>
1616
<Box paddingInlineStart="4" width="284px">
1717
<Placeholder label="PaddingLeft" childAlign="start" />
@@ -23,7 +23,7 @@ function BoxWithPaddingExample() {
2323
</Box>
2424
</div>
2525
</Inline>
26-
<Inline spacing="4">
26+
<Inline gap="4">
2727
<div style={{backgroundColor: '#986BFF'}}>
2828
<Box paddingBlockStart="4" width="284px">
2929
<Placeholder label="PaddingTop" childAlign="center" />

polaris.shopify.com/pages/examples/columns-with-set-number.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function ColumnsWithSetNumberExample() {
1111
xs: '3fr 3fr',
1212
md: '4fr 2fr',
1313
}}
14-
spacing={{
14+
gap={{
1515
xs: '4',
1616
md: '2',
1717
}}

0 commit comments

Comments
 (0)