Skip to content

Commit

Permalink
fix(Stack): Parent stack shouldn't override gap value of nested stacks
Browse files Browse the repository at this point in the history
  • Loading branch information
sapegin committed Jun 21, 2020
1 parent 2166e58 commit 96fca48
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/Stack.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,11 @@ export const Stack = styled(Flex)<Props>(
// at the correct side. We have to use CSS properties becase it's the
// only way to use several responsive props together
// @ts-ignore
property: '--stack-gap',
property: '> * + *',
scale: 'space',
transform: (value, scale) => ({
'--stack-gap': (scale as TLengthStyledSystem[])[value],
}),
},
direction: {
// @ts-ignore
Expand Down

0 comments on commit 96fca48

Please sign in to comment.