@@ -36,7 +36,7 @@ function AlertDialogContent({ className, ...props }: React.ComponentProps<typeof
3636 < AlertDialogPrimitive . Content
3737 data-slot = "alert-dialog-content"
3838 className = { cn (
39- "bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg " ,
39+ "bg-vscode-editor- background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-3 rounded-sm border border-vscode-panel-border p-4 shadow-lg duration-200 sm:max-w-md " ,
4040 className ,
4141 ) }
4242 { ...props }
@@ -46,20 +46,14 @@ function AlertDialogContent({ className, ...props }: React.ComponentProps<typeof
4646}
4747
4848function AlertDialogHeader ( { className, ...props } : React . ComponentProps < "div" > ) {
49- return (
50- < div
51- data-slot = "alert-dialog-header"
52- className = { cn ( "flex flex-col gap-2 text-center sm:text-left" , className ) }
53- { ...props }
54- />
55- )
49+ return < div data-slot = "alert-dialog-header" className = { cn ( "flex flex-col gap-1 text-left" , className ) } { ...props } />
5650}
5751
5852function AlertDialogFooter ( { className, ...props } : React . ComponentProps < "div" > ) {
5953 return (
6054 < div
6155 data-slot = "alert-dialog-footer"
62- className = { cn ( "flex flex-col-reverse gap-2 sm:flex-row sm:justify-end " , className ) }
56+ className = { cn ( "flex flex-row justify-end gap-2 mt-4 " , className ) }
6357 { ...props }
6458 />
6559 )
@@ -69,7 +63,10 @@ function AlertDialogTitle({ className, ...props }: React.ComponentProps<typeof A
6963 return (
7064 < AlertDialogPrimitive . Title
7165 data-slot = "alert-dialog-title"
72- className = { cn ( "text-lg font-semibold" , className ) }
66+ className = { cn (
67+ "text-base font-medium text-vscode-editor-foreground flex items-center gap-2 text-left" ,
68+ className ,
69+ ) }
7370 { ...props }
7471 />
7572 )
@@ -82,18 +79,36 @@ function AlertDialogDescription({
8279 return (
8380 < AlertDialogPrimitive . Description
8481 data-slot = "alert-dialog-description"
85- className = { cn ( "text-muted-foreground text-sm" , className ) }
82+ className = { cn ( "text-vscode-descriptionForeground text-sm text-left " , className ) }
8683 { ...props }
8784 />
8885 )
8986}
9087
9188function AlertDialogAction ( { className, ...props } : React . ComponentProps < typeof AlertDialogPrimitive . Action > ) {
92- return < AlertDialogPrimitive . Action className = { cn ( buttonVariants ( ) , className ) } { ...props } />
89+ return (
90+ < AlertDialogPrimitive . Action
91+ className = { cn (
92+ buttonVariants ( ) ,
93+ "bg-vscode-button-background text-vscode-button-foreground hover:bg-vscode-button-hoverBackground border border-transparent h-6 px-3 py-1" ,
94+ className ,
95+ ) }
96+ { ...props }
97+ />
98+ )
9399}
94100
95101function AlertDialogCancel ( { className, ...props } : React . ComponentProps < typeof AlertDialogPrimitive . Cancel > ) {
96- return < AlertDialogPrimitive . Cancel className = { cn ( buttonVariants ( { variant : "outline" } ) , className ) } { ...props } />
102+ return (
103+ < AlertDialogPrimitive . Cancel
104+ className = { cn (
105+ buttonVariants ( { variant : "outline" } ) ,
106+ "bg-vscode-button-secondaryBackground text-vscode-button-secondaryForeground hover:bg-vscode-button-secondaryHoverBackground border border-vscode-button-border h-6 px-3 py-1" ,
107+ className ,
108+ ) }
109+ { ...props }
110+ />
111+ )
97112}
98113
99114export {
0 commit comments