Skip to content

Commit

Permalink
[Breadcrumbs][Divider] Replace decimal spacing values with integers a…
Browse files Browse the repository at this point in the history
…nd css calc (#29526)
  • Loading branch information
anikcreative authored Nov 12, 2021
1 parent 24a53e5 commit d0e61c8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions packages/mui-material/src/Breadcrumbs/BreadcrumbCollapsed.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import ButtonBase from '../ButtonBase';

const BreadcrumbCollapsedButton = styled(ButtonBase, { skipSx: true })(({ theme }) => ({
display: 'flex',
marginLeft: theme.spacing(0.5),
marginRight: theme.spacing(0.5),
marginLeft: `calc(${theme.spacing(1)} * 0.5)`,
marginRight: `calc(${theme.spacing(1)} * 0.5)`,
...(theme.palette.mode === 'light'
? { backgroundColor: theme.palette.grey[100], color: theme.palette.grey[700] }
: { backgroundColor: theme.palette.grey[700], color: theme.palette.grey[100] }),
Expand Down
8 changes: 4 additions & 4 deletions packages/mui-material/src/Divider/Divider.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,11 +155,11 @@ const DividerWrapper = styled('span', {
},
})(({ theme, ownerState }) => ({
display: 'inline-block',
paddingLeft: theme.spacing(1.2),
paddingRight: theme.spacing(1.2),
paddingLeft: `calc(${theme.spacing(1)} * 1.2)`,
paddingRight: `calc(${theme.spacing(1)} * 1.2)`,
...(ownerState.orientation === 'vertical' && {
paddingTop: theme.spacing(1.2),
paddingBottom: theme.spacing(1.2),
paddingTop: `calc(${theme.spacing(1)} * 1.2)`,
paddingBottom: `calc(${theme.spacing(1)} * 1.2)`,
}),
}));

Expand Down

0 comments on commit d0e61c8

Please sign in to comment.