Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Feature - Foundation.MediaQuery.is() Method #9008
I was thinking this would be a good way for plugins to target a specific breakpoint, rather than being limited to a minimum breakpoint, as they are now with atLeast(). Accepts either ‘[breakpoint] only’ or ‘[breakpoint]’ - in the former case, it will see if the breakpoint matches exactly, and in the latter, it falls back to atLeast().
For instance: #8864
PS: It's my first attempt at contributing to Foundation - I hope I did not donk things up too badly!
I would still have to change methods on the plugins that use Foundation.MediaQuery to use this function instead of the atLeast() method, but I am more than willing to give it a shot and update the pull request.
Happy I got the version number for feature requests right!
I updated the branch with a few changes :) Now it works as planned with Equalizer, Tooltip, and Sticky. Cheers!
Tooltip: (I must admit this one seems a little weird to me, not sure if it would practically be that useful.)