-
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
"reverse" not working #5
Comments
👋 Hey. It works for me? <Grid reverse>
<Grid.Unit width={0.25}>#1</Grid.Unit>
<Grid.Unit width={0.25}>#2</Grid.Unit>
<Grid.Unit width={0.25}>#3</Grid.Unit>
<Grid.Unit width={0.25}>#4</Grid.Unit>
</Grid> Can you provide some way to reproduce it not working? |
Hi @jameslnewell I just realized this works for me with most use cases with one important exception: <Grid reverse wrap>
<Grid.Unit style={{backgroundColor: "blue"}} width={1}>
<span>Foo</span>
</Grid.Unit>
<Grid.Unit style={{backgroundColor: "red"}} width={1}>
<span>Bar</span>
</Grid.Unit>
</Grid> This is a simplified example, but I have a use case where, if the user is on mobile, I want the |
Thanks for the report! I'll look at it in the next few days. |
Try |
Im traveling right now, but the adjustment you made seems about right |
I'm going to revive this issue since there is a complex case where wrap and reverse still bump up against each other:
What we might expect:
On a medium and above screen we would expect the grid to behave as a columns, however
Have included a demo of the bug in the example project grgcnnr@8b27330 |
Hmm great find. This appears to be due to this line where we're expecting
Let me think about the best way of solving it. |
The
reverse
prop for is just not working for me, either as a boolean or as an object. Help?The text was updated successfully, but these errors were encountered: