Mobile device style groups incorrect order in _responsive.less #14476
Labels
Area: Frontend
Fixed in 2.1.x
The issue has been fixed in 2.1 release line
Fixed in 2.2.x
The issue has been fixed in 2.2 release line
Fixed in 2.3.x
The issue has been fixed in 2.3 release line
Issue: Clear Description
Gate 2 Passed. Manual verification of the issue description passed
Issue: Confirmed
Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed
Issue: Format is valid
Gate 1 Passed. Automatic verification of issue format passed
Issue: Ready for Work
Gate 4. Acknowledged. Issue is added to backlog and ready for development
Reproduced on 2.2.x
The issue has been reproduced on latest 2.2 release
Reproduced on 2.3.x
The issue has been reproduced on latest 2.3 release
Style groups for mobile devices (max-width) are specified in the wrong order.
In
lib/web/css/source/lib/_responsive.less
the style groups run breakpoint-size ascending: 319px, 479px, 639px, 767px, which leads to outputting max-width media queries breakpoint-size ascending - the last-defined breakpoint overrides smaller screen size breakpoints...Preconditions
Magento 2.2
Steps to reproduce
Specify styles referencing max media widths
Expected result
CSS should be output as follows:
Actual result
CSS is output as follows:
The last-defined breakpoint takes precedence over the 479px breakpoint even at screen sizes <= 479px.
The text was updated successfully, but these errors were encountered: