Closed hamlim closed 5 years ago
Sorry for the delay! This package has moved to https://github.com/rebassjs/rebass/tree/master/packages/reflexbox and it uses the latest version of Styled System. If you're still encountering this issue with the new package, please open an issue on that repo
It seems like rebass/grid Box and Flex components don't correctly work with responsive-defined props and theme values.
I created a sandbox to showcase the issue here: https://codesandbox.io/s/n3po0v67o4
This sandbox compares:
between:
and a local styled-system version of the Flex component using Emotion.
The sandbox showcases that the array-defined themes work as expected, but the object-defined themes do not except for the styled-system variation.
Simpler example:
Looking at the source code for Box and Flex within this project, I am not sure I understand why this would be the case.