-
Notifications
You must be signed in to change notification settings - Fork 17
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
New: Added xlarge breakpoint, added isScreenSizeMin #372
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.
👍
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.
The consensus on the additional breakpoint has since changed (as per PR #364 (comment)) but I can confirm the mobileInstruction
and image small
and large
work as expected.
@kirsty-hames have updated the pr accordingly |
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.
👀
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.
👍
🎉 This PR is included in version 6.36.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
fixes #371
Alternative to #373
New
xlarge
default to schemas starting at 1280device.isScreenSizeMin(name)
to return true/false if the device is equal or above the named screen sizeFix
size-
classes were not derivablemobileInstruction
now only appears atsmall
, to account for thesmall
>medium
change in hotgraphic and narrativesmall
andlarge
images are defined, images switch fromsmall
tolarge
atmedium
or above to better fit the change from 1 component to 2 component layoutsBreakpoints
All breakpoints are multiples of 8.
small
is for single component viewsmedium
and above are for double component viewsxlarge
is at 1280 to match up with Google M1 breakpoints@max-page-width
at 1440, for limiting the maximum container widthsRationale from #364
Testing
Use: