mui / material-ui

Material UI: Comprehensive React component library that implements Google's Material Design. Free forever.
https://mui.com/material-ui/
MIT License
93.89k stars 32.26k forks source link

[Grid] Compatible props are no longer warned about in v2 #43758

Closed oliviertassinari closed 1 month ago

oliviertassinari commented 1 month ago

Steps to reproduce

https://stackblitz.com/edit/react-wqh4ke?file=Demo.tsx

import * as React from 'react';
import Paper from '@mui/material/Paper';
import Grid from '@mui/material/Grid2';

export default function BasicGrid() {
  return (
    <Grid container spacing={1}>
      <Grid size={8} spacing={2}>
        <Paper>size=8</Paper>
      </Grid>
      <Grid size={4}>
        <Paper>size=4</Paper>
      </Grid>
    </Grid>
  );
}

Current behavior

No warnings

Expected behavior

SCR-20240915-bkol

https://stackblitz.com/edit/react-s8bppb?file=Demo.tsx

Context

No response

Your environment

npx @mui/envinfo ``` Don't forget to mention which browser you used. Output from `npx @mui/envinfo` goes here. ```

Search keywords: -

Shbiro commented 1 month ago
import * as React from 'react';
import Paper from '@mui/material/Paper';
import Grid from '@mui/material/Grid';

export default function BasicGrid() {
  return (
    <Grid container spacing={2}>
      <Grid item xs={8}>
        <Paper>size=8</Paper>
      </Grid>
      <Grid item xs={4}>
        <Paper>size=4</Paper>
      </Grid>
    </Grid>
  );
}
github-actions[bot] commented 1 month ago

This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue. Now, if you have additional information related to this issue or things that could help future readers, feel free to leave a comment.