From 5a14fcf478d55f9cbbb2c8e2d974dbad0c57aceb Mon Sep 17 00:00:00 2001 From: Dawid Poliszak Date: Wed, 24 Jul 2024 13:34:17 +0200 Subject: [PATCH] fix: window lazy loading animation --- src/components/window/WindowFrame.tsx | 89 +++++++++++++-------------- 1 file changed, 44 insertions(+), 45 deletions(-) diff --git a/src/components/window/WindowFrame.tsx b/src/components/window/WindowFrame.tsx index 61879481..07f88623 100644 --- a/src/components/window/WindowFrame.tsx +++ b/src/components/window/WindowFrame.tsx @@ -277,55 +277,54 @@ export const WindowFrame = forwardRef((props: PropsWithChildren +
{/*fallback animation for lazy loaded content*/} - - {/* trap keyboard focus within group (windows opened since last modal) */} - -
{ - event.key === "Escape" && onEscape?.(); - touch(); - }} - tabIndex={-1} - className={cx(focusWrapperClass, focusWrapperTheme)} - data-testid="window" - > - {props.children} -
-
-
+ + {/* trap keyboard focus within group (windows opened since last modal) */} + +
{ + event.key === "Escape" && onEscape?.(); + touch(); + }} + tabIndex={-1} + className={cx(focusWrapperClass, focusWrapperTheme)} + data-testid="window" + > + {props.children} +
+
+
-
- - + + +
); });