question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Grid V2 breakpoint only applied with props order

See original GitHub issue

Duplicates

  • I have searched the existing issues

Latest version

  • I have tested the latest version

Steps to reproduce 🕹

Code example

Current behavior 😯

md breakpoint only used if placed as last prop

Expected behavior 🤔

All items should use 4 cols on md breakpoint and up.

Context 🔦

No response

Your environment 🌎

npx @mui/envinfo
  System:
    OS: macOS 13.0
  Binaries:
    Node: 16.17.0 - ~/.nvm/versions/node/v16.17.0/bin/node
    Yarn: 1.22.19 - ~/.yarn/bin/yarn
    npm: 8.19.2 - ~/dev/fixely/fuel-delta/fuel-delta-frontend/node_modules/.bin/npm
  Browsers:
    Chrome: 106.0.5249.119
    Edge: Not Found
    Firefox: Not Found
    Safari: 16.1
  npmPackages:
    @emotion/react: ^11.10.0 => 11.10.5
    @emotion/styled: ^11.10.0 => 11.10.5
    @mui/base:  5.0.0-alpha.103
    @mui/core-downloads-tracker:  5.10.11
    @mui/material: ^5.10.1 => 5.10.11
    @mui/private-theming:  5.10.9
    @mui/styled-engine:  5.10.8
    @mui/system:  5.10.10
    @mui/types:  7.2.0
    @mui/utils:  5.10.9
    @mui/x-date-pickers: ^5.0.6 => 5.0.6
    @types/react:  18.0.24
    react: ^18.2.0 => 18.2.0
    react-dom: ^18.2.0 => 18.2.0
    typescript: ^4.7.4 => 4.8.4

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
sai6855commented, Nov 2, 2022

sure, i found the root cause. will create PR once i fix it

1reaction
sai6855commented, Nov 1, 2022

This looks like a bug to me. The behavior should not depend on the order of props.

hey i’m big fan of material ui, using it in almost all of my projects. i want to contritube to mui, can i work on this issue?

Read more comments on GitHub >

github_iconTop Results From Across the Web

React Grid component - Material UI - MUI
Use the container prop to create a grid container that wraps the grid items (the Grid is always an item). Column widths are...
Read more >
Changing the order of Grid Item stacking in material-ui
Finally doing <Grid item xs={12} md={6} className={this.props.classes.itemStyle}> will reorder that item. Hope it creates better understanding.
Read more >
Guide to the MUI grid system - LogRocket Blog
MUI enables you to create innovative and responsive layouts. Explore the MUI Grid system and the new features expected with MUI Grid v2....
Read more >
Using Breakpoints and Media Queries in Material-UI
In this function, we will pass an object with classes. Each class has styles that we want to apply to our project. The...
Read more >
Grid system — Vuetify
When applied to v-container it will also align-items: center . ... Breakpoints based props on grid components work in an andUp fashion.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found