Skip to content

Commit bc99b8b

Browse files
committed
Re-add Stack changes
1 parent e80d1c7 commit bc99b8b

File tree

3 files changed

+1
-29
lines changed

3 files changed

+1
-29
lines changed

polaris-react/src/components/Stack/Stack.scss

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
.Stack {
44
// stylelint-disable -- Polaris component custom properties
5+
--pc-stack-align: initial;
56
--pc-stack-gap-xs: 0;
67
--pc-stack-gap-sm: var(--pc-stack-gap-xs);
78
--pc-stack-gap-md: var(--pc-stack-gap-sm);
@@ -51,10 +52,3 @@
5152
margin: 0;
5253
padding: 0;
5354
}
54-
55-
.fullWidth {
56-
> * {
57-
// stylelint-disable-next-line -- generated by polaris-migrator DO NOT COPY
58-
width: 100%;
59-
}
60-
}

polaris-react/src/components/Stack/Stack.stories.tsx

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -101,19 +101,3 @@ export function WithAlignEnd() {
101101
</Stack>
102102
);
103103
}
104-
105-
export function WithFullWidthChildren() {
106-
return (
107-
<Stack gap="4" fullWidth>
108-
<Box background="surface" padding="1">
109-
01
110-
</Box>
111-
<Box background="surface" padding="1">
112-
02
113-
</Box>
114-
<Box background="surface" padding="1">
115-
03
116-
</Box>
117-
</Stack>
118-
);
119-
}

polaris-react/src/components/Stack/Stack.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,6 @@ export interface StackProps extends React.AriaAttributes {
2424
as?: Element;
2525
/** Horizontal alignment of children */
2626
align?: Align;
27-
/** Toggle children to be full width
28-
* @default false
29-
*/
30-
fullWidth?: boolean;
3127
/** The spacing between children */
3228
gap?: Gap;
3329
/** HTML id attribute */
@@ -42,15 +38,13 @@ export const Stack = ({
4238
as = 'div',
4339
children,
4440
align,
45-
fullWidth = false,
4641
gap,
4742
id,
4843
reverseOrder = false,
4944
...restProps
5045
}: StackProps) => {
5146
const className = classNames(
5247
styles.Stack,
53-
fullWidth && styles.fullWidth,
5448
as === 'ul' && styles.listReset,
5549
as === 'fieldset' && styles.fieldsetReset,
5650
);

0 commit comments

Comments
 (0)