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

Breakpoint variables not scoped properly #10628

Closed
rykener opened this issue Sep 8, 2017 · 0 comments · Fixed by #10629
Closed

Breakpoint variables not scoped properly #10628

rykener opened this issue Sep 8, 2017 · 0 comments · Fixed by #10629

Comments

@rykener
Copy link

rykener commented Sep 8, 2017

In scss/utils/_breakpoint.scss (see here) the variables like $small-up and $large-down are scoped only to the if statements in which they are defined.

The solution for this problem is to define the variable before the if statement (as null or an empty string), and then allow the if statement to give it the value desired.

This bug is blocking our organization from fully migrating off of Foundation 5

How to reproduce this bug:

  1. Try to use the $small-up variable

What should happen:

The code should compile

What happened instead:

Undefined variable: "$small-up"

Foundation Version(s) you are using:

6.4, the issue goes back at least to 6.3

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

Successfully merging a pull request may close this issue.

1 participant