Skip to content

Stack responsive direction doesn't respect responsive gap props #49

Open
@ankibalyan

Description

@ankibalyan

if I give a responsive stack like below. It doesn't give the horizontal gap in tab & desktop views

<Stack direction={['vertical', 'horizontal', 'horizontal']} gap={[3, 5, 7]}>
  <Text>Item 1 A</Text>
  <Stack direction="vertical" gap="4">
    <Text>Item 2 A</Text>
    <Text>Item 2 B</Text>
    <Text>Item 2 C</Text>
  </Stack>
  <Stack direction={['vertical', 'horizontal', 'horizontal']} gap={[3, 8, 10]}>
    <Text>Item 3 A</Text>
    <Text>Item 3 B</Text>
    <Text>Item 3 C</Text>
    <Text>Item 3 D</Text>
  </Stack>
</Stack>;

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions