= ({children, ...props}) => (
+
+ {children}
+
+);
+
export default ResponsiveLayout;
diff --git a/src/sheet.css.ts b/src/sheet.css.ts
index 59863d1068..1eaf0fc81c 100644
--- a/src/sheet.css.ts
+++ b/src/sheet.css.ts
@@ -1,8 +1,11 @@
-import {keyframes, style} from '@vanilla-extract/css';
+import {createVar, keyframes, style} from '@vanilla-extract/css';
import * as mq from './media-queries.css';
import {vars as skinVars} from './skins/skin-contract.css';
import {sprinkles} from './sprinkles.css';
+const insideSheetDialog = createVar();
+export const vars = {insideSheetDialog};
+
export const transitionDuration = process.env.NODE_ENV === 'test' ? 0 : 400;
const sheetClosedStyle = {
@@ -41,6 +44,10 @@ export const SheetContainer = style([
'@media': {
[mq.desktopOrBigger]: {
+ vars: {
+ [insideSheetDialog]: '1',
+ },
+
pointerEvents: 'none', // allow clicks to go through this layer and hit the overlay
top: 0,
display: 'flex',
diff --git a/src/sheet.tsx b/src/sheet.tsx
index e5cde6740a..fa13c61e96 100644
--- a/src/sheet.tsx
+++ b/src/sheet.tsx
@@ -9,7 +9,6 @@ import {Text2, Text3, Text5} from './text';
import {vars as skinVars} from './skins/skin-contract.css';
import {RadioGroup} from './radio-button';
import {Row, RowList} from './list';
-import ResponsiveLayout from './responsive-layout';
import NegativeBox from './negative-box';
import Stack from './stack';
import Box from './box';
@@ -23,6 +22,7 @@ import IconCloseRegular from './generated/mistica-icons/icon-close-regular';
import IconButton from './icon-button';
import ButtonLayout from './button-layout';
import Image from './image';
+import {InternalResponsiveLayout} from './responsive-layout';
import type {ExclusifyUnion} from './utils/utility-types';
import type {DataAttributes, IconProps, RendersNullableElement, TrackingEvent} from './utils/types';
@@ -338,11 +338,11 @@ export const SheetBody = ({
{title ? (
-
+
{title}
-
+
) : (
@@ -351,7 +351,7 @@ export const SheetBody = ({
-
+
{subtitle || description ? (
@@ -387,19 +387,19 @@ export const SheetBody = ({
) : null}
{children}
-
+
{hasButtons && (
{showButtonsDivider &&
}
-
+
{button}
{secondaryButton}
-
+
)}