fix(goose2): avoid transform-rasterized dialog text (#8937)

This commit is contained in:
Kalvin C
2026-04-30 18:30:49 -07:00
committed by GitHub
parent 43478a2bf6
commit a6e74a4987
2 changed files with 10 additions and 4 deletions
+5 -2
View File
@@ -49,11 +49,14 @@ function AlertDialogContent({
return (
<AlertDialogPortal>
<AlertDialogOverlay />
<div className="pointer-events-none fixed inset-0 z-[81] grid place-items-center p-4">
<div
data-slot="alert-dialog-positioner"
className="pointer-events-none fixed inset-0 z-[81] grid place-items-center p-4"
>
<AlertDialogPrimitive.Content
data-slot="alert-dialog-content"
className={cn(
"pointer-events-auto bg-background shadow-modal 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 relative grid w-full max-w-[calc(100vw-2rem)] gap-4 rounded-modal border p-6 duration-200 sm:max-w-lg",
"pointer-events-auto relative grid max-h-[calc(100dvh-2rem)] w-full max-w-lg gap-4 overflow-y-auto rounded-modal border bg-background p-6 shadow-modal data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0",
className,
)}
{...props}
+5 -2
View File
@@ -55,11 +55,14 @@ function DialogContent({
return (
<DialogPortal data-slot="dialog-portal">
<DialogOverlay />
<div className="pointer-events-none fixed inset-0 z-[61] grid place-items-center p-4">
<div
data-slot="dialog-positioner"
className="pointer-events-none fixed inset-0 z-[61] grid place-items-center p-4"
>
<DialogPrimitive.Content
data-slot="dialog-content"
className={cn(
"pointer-events-auto bg-background shadow-modal 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 relative grid w-full max-w-[calc(100vw-2rem)] gap-4 rounded-modal border p-6 duration-200 sm:max-w-lg",
"pointer-events-auto relative grid max-h-[calc(100dvh-2rem)] w-full max-w-lg gap-4 overflow-y-auto rounded-modal border bg-background p-6 shadow-modal data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0",
className,
)}
{...props}