You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have tested that _settings.scss is working by customizing other components. I have also tested that the JS is working with: console.log('Current: ' + Foundation.MediaQuery.current)
The text was updated successfully, but these errors were encountered:
mannclay
changed the title
I have tested other JS components like accordions and they work fine. For some reason media queries are not working as expected.
Why is Foundation media queries not working when i use a breakpoint name?
Dec 19, 2022
Most likely you have an external font failing to load, and this seems to prevent Foundation from passing the breakpoints to Javascript via CSS font-family directive.
For example:
.header-first, .header-second { @include breakpoint(medium) { background: $cerulean; } }
compiles to the below where the name of the breakpoint is added but not the size of 640px as in the _settings.scss:
@media (min-width: medium) { .header .header-first, .header .header-second { background: #0098db;} }
I have tested that _settings.scss is working by customizing other components. I have also tested that the JS is working with:
console.log('Current: ' + Foundation.MediaQuery.current)
Any hints on what going on?
Originally posted by @mannclay in https://github.com/foundation/foundation-sites/discussions/12516
The text was updated successfully, but these errors were encountered: