-
Notifications
You must be signed in to change notification settings - Fork 65
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
hide-on-mobile class breakpoint issue #492
Comments
Perhaps there is an alternative solution that doesn't require adding a tiny rem number to the media query. Would tying the style into the size class that appears on the HTML work? Something like:
The Alternatively we could amend the class:
|
@guywillis I like this idea and I think it's the simplest fix. The other suggestion you made runs into the issue of elements sometimes needing to be |
🎉 This issue has been resolved in version 9.15.2 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Subject of the issue
The
.hide-on-mobile
class allows you to hide a component for mobile views. The problem is that it's not properly aligned with the layout breakpoints. This can cause a component with.hide-on-mobile
to disappear at the@device-width-medium
breakpoint.hide-on-mobile
src/theme/adapt-contrib-vanilla/less/project/theme-common.less
Steps to reproduce
hide-on-mobile
class.Expected behaviour
Graphic component should still be visible since 720px is "medium" and higher.
Actual behaviour
Solution
I think the breakpoint should be adjusted by 1px (0.0625rem).
The text was updated successfully, but these errors were encountered: