Skip to content

Commit

Permalink
update shape styling
Browse files Browse the repository at this point in the history
Co-authored-by: seunexplicit <[email protected]>
  • Loading branch information
gitstart and seunexplicit committed Sep 22, 2023
1 parent 4154163 commit b0aff6c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/mui-material/src/Skeleton/Skeleton.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ const SkeletonRoot = styled('span', {
? theme.vars.palette.Skeleton.bg
: alpha(theme.palette.text.primary, theme.palette.mode === 'light' ? 0.11 : 0.13),
height: '1.2em',
borderRadius: (theme.vars || theme).shape.borderRadius,
...(ownerState.size === 'text' && {
marginTop: 0,
marginBottom: 0,
Expand All @@ -92,8 +93,8 @@ const SkeletonRoot = styled('span', {
...(ownerState.shape === 'circular' && {
borderRadius: '50%',
}),
...(ownerState.shape === 'rounded' && {
borderRadius: (theme.vars || theme).shape.borderRadius,
...(ownerState.shape === 'rectangular' && {
borderRadius: 0
}),
...(ownerState.hasChildren && {
'& > *': {
Expand Down

0 comments on commit b0aff6c

Please sign in to comment.