Skip to content

[system] Wrong order of media queries #16528

@caticodev

Description

@caticodev
  • This is not a v0.x issue.
  • I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior 🤔

When using Box the generated media queries should be in correct order

Current Behavior 😯

When property display is added only for higher media query and not for lower, the order of media queries is wrong

Steps to Reproduce 🕹

Link: https://codesandbox.io/s/green-brook-6itw1

  1. In the demo change window size to see the described bug
  2. Check the inspector that media queries are in fact in wrong order

Context 🔦

Your Environment 🌎

Tech Version
Material-UI v4.2.0
React v.16.8.0
Browser Chrome 75

Metadata

Metadata

Assignees

No one assigned

    Labels

    component: BoxThe React component.scope: systemThe system, the design tokens / styling foundations used across components. eg. @mui/system with MUItype: bugIt doesn't behave as expected.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions