@@ -5,7 +5,7 @@ import { CLASSPREFIX as eccgui } from "../../configuration/constants";
55import IconButton from "../Icon/IconButton" ;
66import { TestableComponent } from "../interfaces" ;
77
8- import { Card , CardActions , CardContent , CardHeader , CardOptions , CardTitle } from "./../Card" ;
8+ import { Card , CardActions , CardActionsProps , CardContent , CardHeader , CardOptions , CardTitle } from "./../Card" ;
99import Divider from "./../Separation/Divider" ;
1010import Modal , { ModalProps } from "./Modal" ;
1111
@@ -45,6 +45,8 @@ export interface SimpleDialogProps extends ModalProps, TestableComponent {
4545 showFullScreenToggler ?: boolean ;
4646 /** Starts the modal in full screen mode. The show full screen toggler will be automatically enabled. */
4747 startInFullScreenMode ?: boolean ;
48+ /** Forward properties to the actions footer component. */
49+ actionsProps ?: Omit < CardActionsProps , "inverseDirection" > ;
4850}
4951
5052/**
@@ -66,6 +68,7 @@ export const SimpleDialog = ({
6668 showFullScreenToggler = false ,
6769 startInFullScreenMode = false ,
6870 size,
71+ actionsProps,
6972 ...otherProps
7073} : SimpleDialogProps ) => {
7174 const [ displayFullscreen , setDisplayFullscreen ] = React . useState < boolean > ( startInFullScreenMode ) ;
@@ -112,7 +115,11 @@ export const SimpleDialog = ({
112115 < CardContent className = { `${ eccgui } -dialog__notifications` } > { notifications } </ CardContent >
113116 ) }
114117 { actions && (
115- < CardActions inverseDirection className = { intentClassName } >
118+ < CardActions
119+ { ...actionsProps }
120+ inverseDirection
121+ className = { `${ actionsProps ?. className ?? "" } ${ intentClassName } ` }
122+ >
116123 { actions }
117124 </ CardActions >
118125 ) }
0 commit comments