Skip to content

Commit 594ec4e

Browse files
committed
fix(CozyDialogs): Divider for small dialog wasn't fullwidth
1 parent 8b4d4c0 commit 594ec4e

File tree

4 files changed

+11
-4
lines changed

4 files changed

+11
-4
lines changed

react/CozyDialogs/Dialog.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ const Dialog = props => {
1616
dialogTitleProps,
1717
fullScreen,
1818
id,
19+
dividerProps,
1920
dialogActionsProps,
2021
dialogContentProps
2122
} = useCozyDialog(props)
@@ -45,7 +46,7 @@ const Dialog = props => {
4546
{title && (
4647
<>
4748
<DialogTitle {...dialogTitleProps}>{title}</DialogTitle>
48-
<Divider />
49+
<Divider {...dividerProps} />
4950
</>
5051
)}
5152
<DialogContent {...dialogContentProps}>

react/CozyDialogs/FixedActionsDialog.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ const FixedActionsDialog = props => {
1616
dialogTitleProps,
1717
fullScreen,
1818
id,
19+
dividerProps,
1920
dialogActionsProps,
2021
dialogContentProps
2122
} = useCozyDialog({ ...props, isFluidTitle: true })
@@ -52,7 +53,7 @@ const FixedActionsDialog = props => {
5253
{content}
5354
</div>
5455
</DialogContent>
55-
<Divider />
56+
<Divider {...dividerProps} />
5657
{actions && (
5758
<DialogActions
5859
{...dialogActionsProps}

react/CozyDialogs/FixedDialog.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ const FixedDialog = props => {
1616
dialogTitleProps,
1717
fullScreen,
1818
id,
19+
dividerProps,
1920
dialogActionsProps,
2021
dialogContentProps
2122
} = useCozyDialog(props)
@@ -45,7 +46,7 @@ const FixedDialog = props => {
4546
{title && (
4647
<>
4748
<DialogTitle {...dialogTitleProps}>{title}</DialogTitle>
48-
<Divider />
49+
<Divider {...dividerProps} />
4950
</>
5051
)}
5152
<DialogContent {...dialogContentProps}>

react/MuiCozyTheme/overrides/makeLightNormalOverrides.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,11 @@ export const makeLightNormalOverrides = theme => ({
416416
padding: '0 8px 8px',
417417
height: 'auto',
418418
maxHeight: 'calc(100% - 32px)',
419-
borderRadius: '6px'
419+
borderRadius: '6px',
420+
'& .divider--dialog': {
421+
marginLeft: '-8px',
422+
marginRight: '-8px'
423+
}
420424
}
421425
},
422426
'&.medium': {

0 commit comments

Comments
 (0)