-
Notifications
You must be signed in to change notification settings - Fork 19
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
Usage - "skipping" over null values when using many breakpoints #20
Comments
@bryanberger
then
Perhaps name the helper something more "domain driven" like |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Love the library so far, any suggestion on how to improve the readability here?
Define our breakpoints
Feed into facepaint
Usage
In this case I want the paddingLeft to remain 0 until breakpoint
xl
. Typically all I would need to do is use@media(min-width: ${breakpoints.xl}px)
and be done. How might I reduce the need to liter the code withnull
values, also how might I make it more readable? You must keep the breakpoint order in your head or constantly refer back to the facepaint declaration as the array size expands.Perhaps a regular media query could be used here instead, but I prefer not to mix/match. Thoughts?
The text was updated successfully, but these errors were encountered: