diff --git a/src/lib/components/ui/Modal/Modal.jsx b/src/lib/components/ui/Modal/Modal.jsx index 500c948c9..bb2219062 100644 --- a/src/lib/components/ui/Modal/Modal.jsx +++ b/src/lib/components/ui/Modal/Modal.jsx @@ -179,35 +179,37 @@ class Modal extends React.Component { )} {modalBody()} -
- - {actions.map((action) => ( - -
+ {(actions.length || closeHandler) && ( +
+ + {actions.map((action) => ( + +
+ )} ); diff --git a/src/lib/components/ui/Modal/__tests__/__snapshots__/Modal.test.jsx.snap b/src/lib/components/ui/Modal/__tests__/__snapshots__/Modal.test.jsx.snap index f146fcb54..d7f0e319d 100644 --- a/src/lib/components/ui/Modal/__tests__/__snapshots__/Modal.test.jsx.snap +++ b/src/lib/components/ui/Modal/__tests__/__snapshots__/Modal.test.jsx.snap @@ -823,20 +823,6 @@ exports[`rendering renders correctly with mandatory props only 1`] = ` -
- -
- -
@@ -923,13 +909,6 @@ exports[`rendering renders correctly with portal id 1`] = ` /> - @@ -1041,20 +1020,6 @@ exports[`rendering renders correctly with portal id 1`] = ` -
- -
- -