Skip to content

Commit

Permalink
apply suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
siriwatknp committed Nov 12, 2024
1 parent 130cea6 commit 90a91d1
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions packages/mui-material/src/Grid/Grid.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,7 @@ describe('Material UI <Grid />', () => {
generateRowGap({
ownerState: {
container: true,
rowSpacing: { xs: 1, sm: '16px' },
rowSpacing: { xs: 1, sm: 2, md: '16px' },
},
theme,
}),
Expand All @@ -763,13 +763,19 @@ describe('Material UI <Grid />', () => {
},
marginTop: '-16px',
},
[`@media (min-width:${defaultTheme.breakpoints.values.md}px)`]: {
'& > .MuiGrid-item': {
paddingTop: '16px',
},
marginTop: '-16px',
},
});

expect(
generateColumnGap({
ownerState: {
container: true,
columnSpacing: { xs: 1, sm: '16px' },
columnSpacing: { xs: 1, sm: 2, md: '16px' },
},
theme,
}),
Expand All @@ -788,6 +794,13 @@ describe('Material UI <Grid />', () => {
marginLeft: '-16px',
width: 'calc(100% + 16px)',
},
[`@media (min-width:${defaultTheme.breakpoints.values.md}px)`]: {
'& > .MuiGrid-item': {
paddingLeft: '16px',
},
marginLeft: '-16px',
width: 'calc(100% + 16px)',
},
});
});

Expand Down

0 comments on commit 90a91d1

Please sign in to comment.