-
Notifications
You must be signed in to change notification settings - Fork 14
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
Setting visible
on a Grid.Unit sets it to display:flex
#13
Comments
visible
on a Grid.Unit sets it to display:flexvisible
on a Grid.Unit sets it to display:flex
Yeah 😬any ideas how to fix so it'll work for cases like |
Will |
Does work – but not for IE11. Do you care about that? Also, are you supporting Because if not, can't you just set |
Not personally no... do you? 😁
There's no prop to switch a grid unit to Suggestions? |
You could have a bunch of min/max queries for it? And only set So for this example
So we don't set anything for the breakpoints where visible !== false. It's going against mobile-first principles, but might work 😅 |
This forces the grid unit to be flex, and then the
<Cell>
behaves like an inline-block element and is not longer full width.https://github.com/jameslnewell/styled-components-grid/blob/master/src/mixins/gridUnit.js#L48
I am still using version 1 but I think it looks like it would still happen in v2.
The text was updated successfully, but these errors were encountered: