Skip to content
This repository was archived by the owner on Mar 25, 2025. It is now read-only.

Commit ae7fe18

Browse files
Anton Bilovusboilund
authored andcommitted
fix(dialog): correctly wrap components' content
1 parent cd91622 commit ae7fe18

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

packages/core/src/Dialog/Dialog.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,11 @@ export const Dialog: React.FC<DialogProps> = ({
8181
<Header shadowHidden={atTop !== false}>{header}</Header>
8282
</DialogHeader>
8383
) : null}
84-
<MainSection scrollRef={scrollRef} hasHeader={header !== undefined}>
85-
<DialogContent>{children}</DialogContent>
86-
</MainSection>
84+
<DialogContent>
85+
<MainSection scrollRef={scrollRef} hasHeader={header !== undefined}>
86+
{children}
87+
</MainSection>
88+
</DialogContent>
8789
<DialogFooter>
8890
<Footer shadowHidden={atBottom !== false}>{controls}</Footer>
8991
</DialogFooter>

0 commit comments

Comments
 (0)