fix(webui): stabilize modal dismissal and picker focus
This commit is contained in:
1 parent
883924febc
commit
56052ff583
3 files changed
+26
-3
No files matched your search
@@ -4,8 +4,10 @@ export const floatingSurfaceElevationClassName =
|
||||
export const floatingSurfaceVisualClassName =
|
||||
`rounded-floating p-1.5 ${floatingSurfaceElevationClassName}`;
|
||||
|
||||
// A content-owned exit can keep the overlay mounted after its fade finishes.
|
||||
// Retain the transparent final frame until the modal's presence unmounts it.
|
||||
export const modalOverlayClassName =
|
||||
"fixed inset-0 z-50 bg-black/25 backdrop-blur-[8px] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0";
|
||||
"fixed inset-0 z-50 bg-black/25 backdrop-blur-[8px] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:fill-mode-forwards data-[state=open]:fade-in-0";
|
||||
|
||||
export const modalSurfaceClassName =
|
||||
"bg-background text-foreground shadow-[0_12px_36px_rgba(15,23,42,0.12)] dark:bg-popover dark:shadow-[0_18px_44px_rgba(0,0,0,0.32)]";
|
||||
|
||||
Reference in new issue
Block a user