Skip to content

Commit

Permalink
feat(Dialogs): Spread dialogActions classname to allow override
Browse files Browse the repository at this point in the history
  • Loading branch information
JF-Cozy committed Oct 14, 2024
1 parent c8ef448 commit fc2c414
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 11 deletions.
10 changes: 7 additions & 3 deletions react/CozyDialogs/ConfirmDialog.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,13 @@ const ConfirmDialog = props => {
<DialogActions
{...dialogActionsProps}
disableSpacing
className={cx('dialogActionsFluid', {
columnLayout: actionsLayout == 'column'
})}
className={cx(
'dialogActionsFluid',
{
columnLayout: actionsLayout == 'column'
},
dialogActionsProps.className
)}
>
{actions}
</DialogActions>
Expand Down
10 changes: 7 additions & 3 deletions react/CozyDialogs/Dialog.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,13 @@ const Dialog = props => {
<DialogActions
{...dialogActionsProps}
disableSpacing
className={cx('dialogActionsFluid', {
columnLayout: actionsLayout == 'column'
})}
className={cx(
'dialogActionsFluid',
{
columnLayout: actionsLayout == 'column'
},
dialogActionsProps.className
)}
>
{actions}
</DialogActions>
Expand Down
5 changes: 4 additions & 1 deletion react/CozyDialogs/FixedActionsDialog.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@ const FixedActionsDialog = props => {
<DialogActions
{...dialogActionsProps}
disableSpacing
className={cx({ columnLayout: actionsLayout == 'column' })}
className={cx(
{ columnLayout: actionsLayout == 'column' },
dialogActionsProps.className
)}
>
{actions}
</DialogActions>
Expand Down
5 changes: 4 additions & 1 deletion react/CozyDialogs/FixedDialog.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,10 @@ const FixedDialog = props => {
<DialogActions
{...dialogActionsProps}
disableSpacing
className={cx({ columnLayout: actionsLayout == 'column' })}
className={cx(
{ columnLayout: actionsLayout == 'column' },
dialogActionsProps.className
)}
>
{actions}
</DialogActions>
Expand Down
10 changes: 7 additions & 3 deletions react/CozyDialogs/IllustrationDialog.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,13 @@ const IllustrationDialog = props => {
<DialogActions
{...dialogActionsProps}
disableSpacing
className={cx('dialogActionsFluid', {
columnLayout: actionsLayout == 'column'
})}
className={cx(
'dialogActionsFluid',
{
columnLayout: actionsLayout == 'column'
},
dialogActionsProps.className
)}
>
{actions}
</DialogActions>
Expand Down

0 comments on commit fc2c414

Please sign in to comment.