@@ -22,7 +22,7 @@ export const Chromatic = () => (
2222 </ Container >
2323 < Title title = "Direction column, wrap, justify content end, align items center and gap" level = { 4 } />
2424 < Container >
25- < DxcFlex direction = "column" wrap = "wrap" justifyContent = "end" alignItems = "center" gap = "20px " >
25+ < DxcFlex direction = "column" wrap = "wrap" justifyContent = "end" alignItems = "center" gap = "1.5rem " >
2626 < Placeholder />
2727 < Placeholder minWidth = "100px" />
2828 < Placeholder />
@@ -32,7 +32,7 @@ export const Chromatic = () => (
3232 </ Container >
3333 < Title title = "Wrap with align content space between, row and column gaps, and as a span" level = { 4 } />
3434 < Container height = "250px" >
35- < DxcFlex wrap = "wrap" alignContent = "space-between" as = "span" gap = { { rowGap : "10px " , columnGap : "20px " } } >
35+ < DxcFlex wrap = "wrap" alignContent = "space-between" as = "span" gap = { { rowGap : "0.5rem " , columnGap : "1.5rem " } } >
3636 < Placeholder />
3737 < Placeholder />
3838 < Placeholder />
@@ -51,30 +51,44 @@ export const Chromatic = () => (
5151 < Container height = "75px" >
5252 < DxcFlex basis = "100%" >
5353 < DxcFlex order = { 3 } grow = { 1 } alignSelf = "flex-end" >
54- < Placeholder width = "100%" minWidth = "0" > order 3, grow 1, align self end</ Placeholder >
54+ < Placeholder width = "100%" minWidth = "0" >
55+ order 3, grow 1, align self end
56+ </ Placeholder >
5557 </ DxcFlex >
5658 < DxcFlex order = { - 1 } grow = { 4 } >
57- < Placeholder width = "100%" minWidth = "0" > order -1, grow 4</ Placeholder >
59+ < Placeholder width = "100%" minWidth = "0" >
60+ order -1, grow 4
61+ </ Placeholder >
5862 </ DxcFlex >
5963 < DxcFlex order = { 5 } grow = { 1 } >
60- < Placeholder width = "100%" minWidth = "0" > order 5, grow 1</ Placeholder >
64+ < Placeholder width = "100%" minWidth = "0" >
65+ order 5, grow 1
66+ </ Placeholder >
6167 </ DxcFlex >
6268 < DxcFlex order = { 2 } grow = { 2 } >
63- < Placeholder width = "100%" minWidth = "0" > order 2. grow 2</ Placeholder >
69+ < Placeholder width = "100%" minWidth = "0" >
70+ order 2. grow 2
71+ </ Placeholder >
6472 </ DxcFlex >
6573 </ DxcFlex >
6674 </ Container >
6775 < Title title = "Basis and shrink" level = { 4 } />
6876 < Container >
6977 < DxcFlex basis = "600px" >
7078 < DxcFlex shrink = { 4 } basis = "400px" >
71- < Placeholder width = "100%" minWidth = "0" > shrink 4</ Placeholder >
79+ < Placeholder width = "100%" minWidth = "0" >
80+ shrink 4
81+ </ Placeholder >
7282 </ DxcFlex >
7383 < DxcFlex shrink = { 2 } basis = "400px" >
74- < Placeholder width = "100%" minWidth = "0" > shrink 2</ Placeholder >
84+ < Placeholder width = "100%" minWidth = "0" >
85+ shrink 2
86+ </ Placeholder >
7587 </ DxcFlex >
7688 < DxcFlex shrink = { 1 } basis = "400px" >
77- < Placeholder width = "100%" minWidth = "0" > shrink 1</ Placeholder >
89+ < Placeholder width = "100%" minWidth = "0" >
90+ shrink 1
91+ </ Placeholder >
7892 </ DxcFlex >
7993 </ DxcFlex >
8094 </ Container >
@@ -88,7 +102,7 @@ const Container = styled.div<{ height?: string }>`
88102 ${ ( { height } ) => ( height ? `height: ${ height } ` : "max-height: 150px" ) } ;
89103` ;
90104
91- const Placeholder = styled . div < { minWidth ?: string , width ?: string } > `
105+ const Placeholder = styled . div < { minWidth ?: string ; width ?: string } > `
92106 height: 40px;
93107 min-width: ${ ( { minWidth } ) => minWidth ?? "200px" } ;
94108 width: ${ ( { width } ) => width } ;
0 commit comments