-
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
fix: correctly check breakpoint #11925
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Foundation 6.6.1 has fixes for issues introduced with 6.6 Check out the details below: - 🐛 [#](#11925) - Fix sticky breakpoint check - 🐛 [#](#11936) - Update composer.json for packagist.org - 🐛 [#](#11938) - add missing foundation.js reference comment Thanks to the amazing people who contributed code or documentation to the 6.6.1 release. Foundation wouldn't happen without you! * [Daniel Ruf](https://github.com/DanielRuf) * [Kai](https://github.com/SassNinja) * [Joe Workman](https://github.com/joeworkman) * [phpfui](https://github.com/phpfui)
This pull request has been mentioned on Foundation Open Source Community. There might be relevant details there: https://foundation.discourse.group/t/foundation-v6-6-1-shipped/67/1 |
Hi, I'm using 6.6.1 and I'm seeing the same behaviour highlighted here in issue #9892. Should that issue be fixed in 6.6.1 and does this issue affect it? Basically it's applying (or at least partially trying) sticky-ness to elements when on small break point. |
@rickcurran can you provide a codepen with 6.6.1 which reproduces this? Also please provide the URL / file of Foundation that you use. This bug was fixed in 6.6.1. |
Thanks @DanielRuf, I'm using the Zurb template build tools for this project and also using Flex Grid rather than the default XY Grid so I wasn't sure how to go about creating the same kind of configuration in a codepen using standard CDN based Foundation CSS and JS links, so I've just had to link to the JS / CSS files from my dev server to make a codepen work: https://codepen.io/rickcurran/pen/mdJEWgb In an effort to try and rule out the impact of any of my own code I've tried doing a fresh install using the Zurb template again just to make sure that I've definitely got all the latest versions of the JS / CSS files etc and it does all seem to be up to date. Even after the re-install I'm still seeing the same behaviour where at least some of the sticky attributes are being applied on page load when at the small breakpoint (note that it doesn't do it if you load at medium or larger and then scale down to the small breakpoint). I'm using source order classes on the page where I'm experiencing the issue and I thought it may be something to do with that, but removing those made no difference. It basically just seems to be applying some of the sticky-ness on small screens. I applied this fix from this comment on issue #9892 and it does seems to fix my problem: |
I think the grid is not the problem. Well if this is one of the other issues, these are still open and unresolved so far. So I think this might not yet be fixed. We could need some help with fixing these things. |
Thanks @DanielRuf, as far as I can tell it appears to be issue #9892 that is still the problem, so I think that open issue would be the relevant one. I'm pushed for time right now to try and look under the hood to see what's going on, but I'll add it as a 'todo' and take a look as soon as I can (The workaround I linked to above has got things working for me in the meantime). |
Description
This PR fixes the bug caused by #11924
Types of changes
Checklist
develop
ordevelop-v...
).