-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Mention foundation-global-styles in the JavaScript section #11374
Comments
Hi @gforcada, I agree that we could add some explantations in the Media Query documentation about I think we should also move the About |
@ncoden (regarding the imports) as I saw that on the live docs, I assumed it had to be on the latest released version rather than on master. |
Would introduce a breaking change for for those that are importing Foundation plugins themselves in Sass. Delaying this for v6.6.0 |
Partially resolve foundation#11374
See #11382 |
@ncoden thanks! |
Description
At work we spent quite a lot of time to debug why something as simple as getting the current media query, i.e:
was not working for us.
Possible Solution
After debugging a lot, what we noticed was that the
<meta class="foundation-mq">
was not properly initialized, which pointed us toSCSS
, and indeed there was the problem.We were missing:
in our main
app.scss
.After that was done,
.foundation-mq
had all the media queries.Still there was a small thing to change: rather than calling
Foundation.MediaQuery.current
we had to do:The equivalent
was also not working.
In general, the JavaScript setup section needs some love, as I guess we are not the only ones that are not importing the full Foundation CSS, but just the small subset that we are need.
Checklist (all required):
The text was updated successfully, but these errors were encountered: