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

Variable responsive prop 0 is not working correctly #9

Closed
psoaresbj opened this issue Feb 10, 2019 · 0 comments
Closed

Variable responsive prop 0 is not working correctly #9

psoaresbj opened this issue Feb 10, 2019 · 0 comments

Comments

@psoaresbj
Copy link
Owner

When using 0 as value for a variable prop, the logic is assuming false.
ex:

Col xs={12} mt={{xs: 2, sm: 0}}>
    {content}
</Col>

For now, just use a string to make it work:

Col xs={12} mt={{xs: 2, sm: '0'}}>
    {content}
</Col>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant