From 6f43241e82023d2d18ca9446294df9e4158688a4 Mon Sep 17 00:00:00 2001 From: Benji <64439681+benjitrosch@users.noreply.github.com> Date: Fri, 15 Sep 2023 14:42:41 -0400 Subject: [PATCH] Revert "Modal form change proposal (#416)" This reverts commit 3c21419637ae152fc347c398021399cb1f3f882d. --- src/Modal/Modal.stories.tsx | 30 +++++++++++------------------- src/Modal/Modal.tsx | 4 ++-- 2 files changed, 13 insertions(+), 21 deletions(-) diff --git a/src/Modal/Modal.stories.tsx b/src/Modal/Modal.stories.tsx index 60c86699..c6577e80 100644 --- a/src/Modal/Modal.stories.tsx +++ b/src/Modal/Modal.stories.tsx @@ -23,9 +23,7 @@ export const Default: Story = (args) => { Press ESC key or click the button below to close -
- -
+
@@ -60,16 +58,14 @@ export const CloseButton: Story = (args) => {
-
- -
+ Hello! Press ESC key or click on X button to close
@@ -91,9 +87,7 @@ export const CustomWidth: Story = (args) => { Press ESC key or click the button below to close -
- -
+
@@ -113,9 +107,7 @@ export const UseDialogHook: Story = (args) => { Hello! This modal works with useDialog hook! -
- -
+
diff --git a/src/Modal/Modal.tsx b/src/Modal/Modal.tsx index a2a9bdcc..8e2dfc10 100644 --- a/src/Modal/Modal.tsx +++ b/src/Modal/Modal.tsx @@ -42,9 +42,9 @@ const Modal = forwardRef( className={containerClasses} ref={ref} > -
+
{children} -
+ {backdrop && (