From c5c77fcec47245cc15233151c639806cc553f942 Mon Sep 17 00:00:00 2001 From: josephalexantony-aot Date: Thu, 5 Dec 2024 01:52:41 -0800 Subject: [PATCH] FWF-4012:{Feature] - Confirm modal updates. --- .../CustomComponents/ConfirmModal.tsx | 5 ++++- .../src/components/SvgIcons/index.tsx | 17 ----------------- forms-flow-theme/scss/_forms.scss | 5 +++++ 3 files changed, 9 insertions(+), 18 deletions(-) diff --git a/forms-flow-components/src/components/CustomComponents/ConfirmModal.tsx b/forms-flow-components/src/components/CustomComponents/ConfirmModal.tsx index b7df50c78..42d16c6bf 100644 --- a/forms-flow-components/src/components/CustomComponents/ConfirmModal.tsx +++ b/forms-flow-components/src/components/CustomComponents/ConfirmModal.tsx @@ -18,6 +18,7 @@ interface ConfirmModalProps { primaryBtndataTestid?: string; primaryBtnariaLabel?: string; secondoryBtnariaLabel?: string; + buttonLoading?:boolean; } export const ConfirmModal: React.FC = React.memo(({ @@ -34,7 +35,8 @@ export const ConfirmModal: React.FC = React.memo(({ secondoryBtndataTestid = 'cancel-button', primaryBtndataTestid = 'Confirm-button', primaryBtnariaLabel = 'Confirm Button', - secondoryBtnariaLabel = 'Cancel Button' + secondoryBtnariaLabel = 'Cancel Button', + buttonLoading= false, }) => { return ( <> @@ -89,6 +91,7 @@ export const ConfirmModal: React.FC = React.memo(({ onClick={primaryBtnAction} dataTestid={primaryBtndataTestid} ariaLabel={primaryBtnariaLabel} + buttonLoading={buttonLoading} /> ( ); -export const StrokeLine = ({ color = grayColor}) => ( - - - -); diff --git a/forms-flow-theme/scss/_forms.scss b/forms-flow-theme/scss/_forms.scss index d97d127c6..e2d2d9986 100644 --- a/forms-flow-theme/scss/_forms.scss +++ b/forms-flow-theme/scss/_forms.scss @@ -459,3 +459,8 @@ select option:hover { display: none !important; } } + +.dashed-line { + width: 8.8125rem; + border-top: 0.1875rem dashed var(--ff-gray-300); +} \ No newline at end of file