Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In a grid layout, gap configured in breakpoints won't work #1126

Open
bitweedx86 opened this issue Dec 4, 2022 · 1 comment
Open

In a grid layout, gap configured in breakpoints won't work #1126

bitweedx86 opened this issue Dec 4, 2022 · 1 comment

Comments

@bitweedx86
Copy link

Bug report

Describe the bug

When writing a stitches object, the grid column/row object won't apply on the element.

To Reproduce

The object looks like this:

const TablesGrid = styled('div', {
  display: 'grid',

  variants: {
    gap: {
      horizontal: {
        gap: 4,
        gridTemplateColumns: '1fr 1fr',
      },
      vertical: {
        gap: 16,
        gridTemplateColumns: '1fr',
      },
    },
  },
});

Expected behavior

Expected that the gap will be applied based on different breakpoint.

Screenshots

CleanShot 2022-12-04 at 12 48 38@2x

CleanShot 2022-12-04 at 12 48 31@2x

System information

  • OS: macOS
  • Browser (if applies) Chrome
  • Version of Stitches: 1.2.8
  • Version of Node.js: v16.18.1
@bitweedx86
Copy link
Author

CleanShot 2022-12-04 at 12 50 54@2x

This is the setup of the breakpoints.

And it did work if I setup like this:
CleanShot 2022-12-04 at 12 50 49@2x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant