stitches icon indicating copy to clipboard operation
stitches copied to clipboard

Non-integer keys are not applied to elements in space.

Open askides opened this issue 3 years ago • 1 comments

Bug report

Hello,

If I try to do something like this:

space: {
  0: "0",
  1: "0.25rem",
  2: "0.5rem",
  3: "0.75rem",
  4: "1rem",
  5: "1.25rem",
  6: "1.5rem",
  7: "1.75rem",
  8: "2rem",
  9: "2.25rem",
},

All the sizes are applied correctly, but if I do something like that:

space: {
  xs: "2.25rem",
},

The variable is generated, I can see it in the browser inspector, and it also works if i apply it manually, but it's not applied automatically by stitches.

PS: The problem is the same also if I insert "10" as a key.

Screenshots

Schermata 2022-02-21 alle 01 23 08 Schermata 2022-02-21 alle 01 23 36

System information

  • OS: macOS Monterey 12.2
  • Browser: Chrome 98.0.4758.102 (arm64)
  • Version of Stitches: 1.2.6
  • Version of Node.js: 16.13.2

Hope it helps!

askides avatar Feb 21 '22 00:02 askides

Hey @itsrennyman Could you please provide a reproduction? not sure I understand the requirements.

hadihallak avatar Jun 01 '22 18:06 hadihallak