Skip to content
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

"Breakpoints" object only works when written in order from smaller to larger breakpoints #6

Open
CharlieIGG opened this issue Jul 20, 2017 · 2 comments
Labels

Comments

@CharlieIGG
Copy link

CharlieIGG commented Jul 20, 2017

Example:

If I'm on a large screen and I write:

<Grid.Unit width={{ sm:0, md:1/2, lg: 1/3}} />

This does work for me, however if I write the object in any other order, for instance:

<Grid.Unit width={{lg: 1/3, md:1/2, sm:0}} />

I always get a 50% width, on a large screen size.

EDIT: I get 50%, not 0%

@jameslnewell
Copy link
Owner

Thanks for the report! Probably a bug in styled-components-breakpoint. I'll look at it in the next few days.

@giautm
Copy link

giautm commented May 19, 2020

few years...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants