Skip to content

Commit

Permalink
fix: FrostedGlass parent container position relative
Browse files Browse the repository at this point in the history
  • Loading branch information
hmerritt committed Feb 10, 2024
1 parent d89e971 commit 41fc5d8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/view/components/experimental/FrostedGlass.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export const FrostedGlass: React.FC<FrostedGlassProps> = ({
}, [reactToWindowResize, calculatePaneCount]);

return (
<div ref={$div} {...divProps} className={className}>
<div ref={$div} {...divProps} className={cx(frostedGlass, className)}>
{children}

<div className={cx(paneContainer, paneDirection)}>
Expand All @@ -69,6 +69,10 @@ export const FrostedGlass: React.FC<FrostedGlassProps> = ({
);
};

const frostedGlass = css`
position: relative;
`;

const paneContainer = css`
position: absolute;
z-index: -1;
Expand Down

0 comments on commit 41fc5d8

Please sign in to comment.