Skip to content

Commit

Permalink
FWF-4012:{Feature] - Confirm modal updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
Josephalexantony-aot committed Dec 5, 2024
1 parent b55a11c commit c5c77fc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ interface ConfirmModalProps {
primaryBtndataTestid?: string;
primaryBtnariaLabel?: string;
secondoryBtnariaLabel?: string;
buttonLoading?:boolean;
}

export const ConfirmModal: React.FC<ConfirmModalProps> = React.memo(({
Expand All @@ -34,7 +35,8 @@ export const ConfirmModal: React.FC<ConfirmModalProps> = React.memo(({
secondoryBtndataTestid = 'cancel-button',
primaryBtndataTestid = 'Confirm-button',
primaryBtnariaLabel = 'Confirm Button',
secondoryBtnariaLabel = 'Cancel Button'
secondoryBtnariaLabel = 'Cancel Button',
buttonLoading= false,
}) => {
return (
<>
Expand Down Expand Up @@ -89,6 +91,7 @@ export const ConfirmModal: React.FC<ConfirmModalProps> = React.memo(({
onClick={primaryBtnAction}
dataTestid={primaryBtndataTestid}
ariaLabel={primaryBtnariaLabel}
buttonLoading={buttonLoading}
/>
<CustomButton
variant="secondary"
Expand Down
17 changes: 0 additions & 17 deletions forms-flow-components/src/components/SvgIcons/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -668,20 +668,3 @@ export const StarPremiumIcon = ({ color = baseColor,...props }) => (
</svg>
);

export const StrokeLine = ({ color = grayColor}) => (
<svg
xmlns="http://www.w3.org/2000/svg"
width="318"
height="3"
viewBox="0 0 318 3"
fill="none"
>
<path
d="M1 1.5L317 1.50003"
stroke={color}
strokeWidth="2"
strokeLinecap="round"
strokeDasharray="8 8"
/>
</svg>
);
5 changes: 5 additions & 0 deletions forms-flow-theme/scss/_forms.scss
Original file line number Diff line number Diff line change
Expand Up @@ -459,3 +459,8 @@ select option:hover {
display: none !important;
}
}

.dashed-line {
width: 8.8125rem;
border-top: 0.1875rem dashed var(--ff-gray-300);
}

0 comments on commit c5c77fc

Please sign in to comment.