Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[material-ui][Divider] Enable borderStyle enhancement in divider with children #42715

Merged
merged 13 commits into from
Jul 24, 2024
4 changes: 4 additions & 0 deletions packages/mui-material/src/Divider/Divider.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ const DividerRoot = styled('div', {
whiteSpace: 'nowrap',
textAlign: 'center',
border: 0,
borderTopStyle: 'solid',
DiegoAndai marked this conversation as resolved.
Show resolved Hide resolved
borderLeftStyle: 'solid',
'&::before, &::after': {
content: '""',
alignSelf: 'center',
Expand All @@ -149,6 +151,7 @@ const DividerRoot = styled('div', {
'&::before, &::after': {
width: '100%',
borderTop: `thin solid ${(theme.vars || theme).palette.divider}`,
borderTopStyle: 'inherit',
},
},
},
Expand All @@ -159,6 +162,7 @@ const DividerRoot = styled('div', {
'&::before, &::after': {
height: '100%',
borderLeft: `thin solid ${(theme.vars || theme).palette.divider}`,
borderLeftStyle: 'inherit',
},
},
},
Expand Down
Loading