File tree Expand file tree Collapse file tree 3 files changed +1
-29
lines changed
polaris-react/src/components/Stack Expand file tree Collapse file tree 3 files changed +1
-29
lines changed Original file line number Diff line number Diff line change 2
2
3
3
.Stack {
4
4
// stylelint-disable -- Polaris component custom properties
5
+ --pc-stack-align : initial ;
5
6
--pc-stack-gap-xs : 0 ;
6
7
--pc-stack-gap-sm : var (--pc-stack-gap-xs );
7
8
--pc-stack-gap-md : var (--pc-stack-gap-sm );
51
52
margin : 0 ;
52
53
padding : 0 ;
53
54
}
54
-
55
- .fullWidth {
56
- > * {
57
- // stylelint-disable-next-line -- generated by polaris-migrator DO NOT COPY
58
- width : 100% ;
59
- }
60
- }
Original file line number Diff line number Diff line change @@ -101,19 +101,3 @@ export function WithAlignEnd() {
101
101
</ Stack >
102
102
) ;
103
103
}
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
- }
Original file line number Diff line number Diff line change @@ -24,10 +24,6 @@ export interface StackProps extends React.AriaAttributes {
24
24
as ?: Element ;
25
25
/** Horizontal alignment of children */
26
26
align ?: Align ;
27
- /** Toggle children to be full width
28
- * @default false
29
- */
30
- fullWidth ?: boolean ;
31
27
/** The spacing between children */
32
28
gap ?: Gap ;
33
29
/** HTML id attribute */
@@ -42,15 +38,13 @@ export const Stack = ({
42
38
as = 'div' ,
43
39
children,
44
40
align,
45
- fullWidth = false ,
46
41
gap,
47
42
id,
48
43
reverseOrder = false ,
49
44
...restProps
50
45
} : StackProps ) => {
51
46
const className = classNames (
52
47
styles . Stack ,
53
- fullWidth && styles . fullWidth ,
54
48
as === 'ul' && styles . listReset ,
55
49
as === 'fieldset' && styles . fieldsetReset ,
56
50
) ;
You can’t perform that action at this time.
0 commit comments