From 28ffdcf19e75fc6d1553ef8c56004b2a2f227b3b Mon Sep 17 00:00:00 2001 From: Maciej Ziarkowski Date: Fri, 16 Aug 2019 15:40:38 +0100 Subject: [PATCH] Improve modal popup CSS --- app/src/frontend/ConfirmationModal.css | 4 +- app/src/frontend/ConfirmationModal.tsx | 58 +++++++++++++------------- 2 files changed, 32 insertions(+), 30 deletions(-) diff --git a/app/src/frontend/ConfirmationModal.css b/app/src/frontend/ConfirmationModal.css index 9cffe468..2d5330f1 100644 --- a/app/src/frontend/ConfirmationModal.css +++ b/app/src/frontend/ConfirmationModal.css @@ -1,7 +1,7 @@ -.show-modal { +.modal.modal-show { display: block; } -.modal-hide { +.modal.modal-hide { display: none; } \ No newline at end of file diff --git a/app/src/frontend/ConfirmationModal.tsx b/app/src/frontend/ConfirmationModal.tsx index 6fab02b7..7ad5be58 100644 --- a/app/src/frontend/ConfirmationModal.tsx +++ b/app/src/frontend/ConfirmationModal.tsx @@ -21,34 +21,36 @@ const ConfirmationModal: React.FunctionComponent = ({ }) => { const modalShowClass = props.show ? 'modal-show': 'modal-hide'; return ( -
-
-
-
-
{props.title}
- -
-
-

{props.description}

-
-
- - +
+
+
+
+
+
{props.title}
+ +
+
+

{props.description}

+
+
+ + +