-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Add gap property to Flex (#981) * Add gap property to Flex This will help us stop adding margins on individual items. styled-system doesn't seem to support gap yet [1] but we can just add it ourselves. This code works for styled-system v3.1.11 [2]. In the future we'll need to simply replace `style` with `system` [3]. [1] styled-system/styled-system#1159 [2] https://github.com/styled-system/styled-system/blob/v3.1.11/docs/custom-props.md [3] https://styled-system.com/custom-props/ * Remove unnecessary tranformValue for gap (#984) It makes it impossible to specify gap as a specific value, for example "8px" as it'll get transformed to "8pxpx". Co-authored-by: Jeff Pihach <[email protected]>
- Loading branch information
Showing
3 changed files
with
23 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters