From 7469444aea12774eea930d06b1d29f7635732a20 Mon Sep 17 00:00:00 2001 From: Chayan Das <145531182+ChayanDass@users.noreply.github.com> Date: Fri, 19 Jun 2026 12:11:40 +0530 Subject: [PATCH] fix: align confirmation dialog header and footer (#29588) Signed-off-by: Chayan Das Co-authored-by: Bandhan Majumder <133476557+bandhan-majumder@users.noreply.github.com> --- packages/ui/components/dialog/Dialog.tsx | 47 +++++++++++++----------- 1 file changed, 26 insertions(+), 21 deletions(-) diff --git a/packages/ui/components/dialog/Dialog.tsx b/packages/ui/components/dialog/Dialog.tsx index 27f52c03a7..10b5598aff 100644 --- a/packages/ui/components/dialog/Dialog.tsx +++ b/packages/ui/components/dialog/Dialog.tsx @@ -98,15 +98,10 @@ export const DialogContent = React.forwardRef )} {type === "confirmation" && ( -
- {icon && ( -
- -
- )} -
- -
{children}
+
+ +
+ {children}
)} @@ -120,6 +115,7 @@ export const DialogContent = React.forwardRef; export function DialogHeader(props: DialogHeaderProps) { @@ -127,17 +123,26 @@ export function DialogHeader(props: DialogHeaderProps) { return (
- - {props.subtitle && ( -

- {props.subtitle} -

- )} +
+ {props.icon && ( +
+ +
+ )} +
+ + {props.subtitle && ( +

+ {props.subtitle} +

+ )} +
+
); } @@ -198,4 +203,4 @@ export function DialogClose( ); -} +} \ No newline at end of file