Shift media query breakpoints 1px
See original GitHub issueBug, feature request, or proposal:
Proposing the following:
$mat-xsmall: 'max-width: 600px'; // -> 599px
$mat-small: 'max-width: 960px'; // -> 959px
What is the use-case or motivation for changing an existing behavior?
The flex-layout library uses max-width: 599px
and max-width: 959px
for their xsmall and small breakpoints, respectively.
However, material2 uses 600px
and 960px
, respectively.
This causes a 1px gap between media-query changes.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:7 (5 by maintainers)
Top Results From Across the Web
Responsive display settings have 1px gap in breakpoints #5221
The fix would be to ensure the frontend styles all use min-width for the toggle styles media queries, rather than a mixture of...
Read more >the 1px gap when using min and max with media queries
Using Bootstrap to create a mega menu and between breakpoints 991px (down) and 992px (up), I get a moment of bs default menu...
Read more >Responsive Layouts, Fewer Media Queries | CSS-Tricks
Basically, we are going to switch between the X1 and X2 values based on the difference, 100vw - W , where W is...
Read more >CSS Media Min-Width & Max-Width Queries - How They Work
Breakpoints. Most media queries are set to trigger at certain screen widths or breakpoints. Exactly what these should be set to is a...
Read more >Beginner's guide to media queries - Learn web development
In this lesson you will first learn about the syntax used in media queries, and then move on to use them in a...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The spec states the following:
Which doesn’t give a clear answer to if the breakpoint should be at 599 or 600 for max-width.
A bit further down however it states “* 16dp when the smallest width of the device is <600” which indicates that the breakpoint for max-width should be 599.
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.