diff --git a/src/components/ui/modal/modal.tsx b/src/components/ui/modal/modal.tsx index 8747cc4f0..d75b1146a 100644 --- a/src/components/ui/modal/modal.tsx +++ b/src/components/ui/modal/modal.tsx @@ -45,6 +45,8 @@ interface IModal { confirmationFullWidth?: boolean; /** Callback when the modal is closed. */ onClose?: () => void; + /** Set whether the modal has padding. */ + padding?: string; /** Callback when the secondary action is chosen. */ secondaryAction?: (event?: React.MouseEvent) => void; /** Secondary button text. */ @@ -73,6 +75,7 @@ const Modal = React.forwardRef(({ confirmationTheme, confirmationFullWidth, onClose, + padding = 'p-6', secondaryAction, secondaryDisabled = false, secondaryText, @@ -95,7 +98,7 @@ const Modal = React.forwardRef(({