Skip to content

Commit

Permalink
[DividerWrapper] 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 887b8c8 commit 442a908
Showing 1 changed file with 4 additions and 4 deletions.
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 442a908

Please sign in to comment.