Skip to content

Commit

Permalink
[BreadcrumbCollapsed] replace decimal spacing values
Browse files Browse the repository at this point in the history
* replace decimal values passed to `theme.spacing()` with integers

* use css `calc()` to calculate final value
  • Loading branch information
Anik Bhattacharya committed Nov 6, 2021
1 parent 3f58dd9 commit 887b8c8
Showing 1 changed file with 2 additions and 2 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

0 comments on commit 887b8c8

Please sign in to comment.