Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
fix(condensed-grid): moved vertical spacing to col #4577
fix(condensed-grid): moved vertical spacing to col #4577
Changes from all commits
b5b7046
f014da0
8a0c0a1
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the row doesn't wrap, won't the padding bottom be half the size now?
Also will the first row effectively have a padding-top now that the first set of columns has a padding top?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is what I ended up running into as well when trying to implement earlier 😞
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vpicone half the size of what? Going this route the top row will have
1px
on top, and the last row (whether it wraps or not) will have1px
on the bottom. It evenly distributes it minimizing/equalizing any lopsidedness. Part of my thinking around this is that the left and right of the grid is offset1px
already due to the same method being used on horizontal spacing, so this would put an even1px
transparent border around the whole grid whether it wraps, or not, or whether it has one column or hundreds.2px
, and top0
. This looks more inlined with what y'all were doing with the rows, although it looks like y'all were trying to remove the spacing on the last row (for good reason). This method would have2px
on the bottom whether it wraps or not.2px
, and margin bottom2px
. The margins should collapse and distribute the spacing evenly throughout the board, but now you have2px
on top and bottom of the row/grid whether it wraps or not.I thought maybe we could do some cool stuff with the
nth-child
, but that might get a little whacky when users start mixing column sizes in a grid layout.I'm open to other possible solutions. @joshblack I figured you were dealing with some of the same questions when ya'll first implement it. Just trying to open up the discussion here, and see if we can find some sort of solution that works everyone. 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're going from 0px top to 1px and from 2px bottom to 1px right? Just making sure that was the intent Would like to see some more examples with wraps/no-wraps before and after
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe the codesandbox I built in #4555 might help you see more examples, or maybe you're asking for more examples on top of that?
https://codesandbox.io/s/unruffled-raman-6rl7u?fontsize=14
Right now, the columns have no vertical spacing at all. The vertical spacing is put on
bx--row
. So wrapping they won't have any vertical spacing.bx--row
will also remove the spacing if it's the last/only row in the condensed grid.