diff --git a/src/Modal/Modal.story.tsx b/src/Modal/Modal.story.tsx index a5231b59..edf9d4cd 100644 --- a/src/Modal/Modal.story.tsx +++ b/src/Modal/Modal.story.tsx @@ -302,4 +302,27 @@ storiesOf("Modal", module) .join(" ")} + )) + .add("No title and no description", () => ( + + Buy 1 Seat + + } + secondaryAction={} + bottomLeftText={ + + Update Billing Information + + } + > +
+ {Array.from(Array(500)) + .map(() => "lorem ipsum dolor") + .join(" ")} +
+
)); diff --git a/src/Modal/Modal.tsx b/src/Modal/Modal.tsx index a83b3e78..4b545428 100644 --- a/src/Modal/Modal.tsx +++ b/src/Modal/Modal.tsx @@ -82,7 +82,7 @@ interface Props { /** * Title of the modal */ - title: React.ReactNode; + title?: React.ReactNode; } const modalBackdrop = css` @@ -285,10 +285,11 @@ export const Modal: React.FC = ({