Skip to content

Commit a0ff279

Browse files
committed
Fixing unintended changes in Flex stories
1 parent ea2c126 commit a0ff279

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

lib/src/flex/Flex.stories.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,30 +51,30 @@ export const Chromatic = () => (
5151
<Container height="75px">
5252
<DxcFlex basis="100%">
5353
<DxcFlex order={3} grow={1} alignSelf="flex-end">
54-
<Placeholder width="100%">order 3, grow 1, align self end</Placeholder>
54+
<Placeholder width="100%" minWidth="0">order 3, grow 1, align self end</Placeholder>
5555
</DxcFlex>
5656
<DxcFlex order={-1} grow={4}>
57-
<Placeholder width="100%">order -1, grow 4</Placeholder>
57+
<Placeholder width="100%" minWidth="0">order -1, grow 4</Placeholder>
5858
</DxcFlex>
5959
<DxcFlex order={5} grow={1}>
60-
<Placeholder width="100%">order 5, grow 1</Placeholder>
60+
<Placeholder width="100%" minWidth="0">order 5, grow 1</Placeholder>
6161
</DxcFlex>
6262
<DxcFlex order={2} grow={2}>
63-
<Placeholder width="100%">order 2. grow 2</Placeholder>
63+
<Placeholder width="100%" minWidth="0">order 2. grow 2</Placeholder>
6464
</DxcFlex>
6565
</DxcFlex>
6666
</Container>
6767
<Title title="Basis and shrink" level={4} />
6868
<Container>
6969
<DxcFlex basis="600px">
7070
<DxcFlex shrink={4} basis="400px">
71-
<Placeholder width="100%">shrink 4</Placeholder>
71+
<Placeholder width="100%" minWidth="0">shrink 4</Placeholder>
7272
</DxcFlex>
7373
<DxcFlex shrink={2} basis="400px">
74-
<Placeholder width="100%">shrink 2</Placeholder>
74+
<Placeholder width="100%" minWidth="0">shrink 2</Placeholder>
7575
</DxcFlex>
7676
<DxcFlex shrink={1} basis="400px">
77-
<Placeholder width="100%">shrink 1</Placeholder>
77+
<Placeholder width="100%" minWidth="0">shrink 1</Placeholder>
7878
</DxcFlex>
7979
</DxcFlex>
8080
</Container>
@@ -90,7 +90,7 @@ const Container = styled.div<{ height?: string }>`
9090

9191
const Placeholder = styled.div<{ minWidth?: string, width?: string }>`
9292
height: 40px;
93-
min-width: ${({ minWidth }) => minWidth || "200px"};
93+
min-width: ${({ minWidth }) => minWidth ?? "200px"};
9494
width: ${({ width }) => width};
9595
border: 1px solid #a46ede;
9696
border-radius: 0.5rem;

0 commit comments

Comments
 (0)