You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Material UI v5's grid component spacing is only applying top and left padding as opposed to padding all around. This is a screenshot from v5's documentation on the Grid component.
Expected behavior 馃
There was an expectation that when using the spacing prop on Grid container components, padding should be applied ALL around Grid item components. This is a screenshot from v4's documentation on the Grid component.
Steps to reproduce 馃暪
Steps:
Start a new project and install the latest version of Material UI (@mui/material)
Import and render a Grid component with the spacing prop set to any number along with any Grid components with the item prop.
Open the Chrome debugger (or any browser debugging) tool and inspect the newly created Grid component and its subsequent children with the item prop.
Notice that the padding is applied to only the top and left.
Context 馃敠
Spacing should apply the padding to all directions of the component, not just the top and left.
Duplicates
Latest version
Current behavior 馃槸
Material UI v5's grid component spacing is only applying top and left padding as opposed to padding all around. This is a screenshot from v5's documentation on the Grid component.
![v5_spacing](https://user-images.githubusercontent.com/49256014/153294062-664ccd35-f995-409b-853a-0240f2a40a6b.png)
Expected behavior 馃
There was an expectation that when using the
![v4_spacing](https://user-images.githubusercontent.com/49256014/153294185-6adc6c1b-7e20-49e7-850c-e462cd2012a7.png)
spacing
prop on Grid container components, padding should be applied ALL around Grid item components. This is a screenshot from v4's documentation on the Grid component.Steps to reproduce 馃暪
Steps:
@mui/material
)spacing
prop set to any number along with any Grid components with theitem
prop.item
prop.Context 馃敠
Spacing should apply the padding to all directions of the component, not just the top and left.
Your environment 馃寧
`npx @mui/envinfo`
The text was updated successfully, but these errors were encountered: