Skip to content

Commit d870d59

Browse files
committed
update padding styles for full size dialog + add story
1 parent ad2f1d7 commit d870d59

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

src/@chakra-ui/components/Modal.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export const Modal = defineMultiStyleConfig({
1818
dialog: {
1919
bg: "background.base",
2020
gap: "4",
21-
padding: { base: "4", sm: "8", md: "16" },
21+
padding: { base: "4", sm: "8" },
2222
borderRadius: "base",
2323
boxShadow: "none",
2424
},
@@ -54,6 +54,7 @@ export const Modal = defineMultiStyleConfig({
5454
alignItems: { base: "flex-start", md: "center" },
5555
},
5656
dialog: {
57+
padding: { base: "4", sm: "8", md: "16" },
5758
my: { base: "4", md: props.isCentered ? "auto" : "4" },
5859
mx: "4",
5960
minH: {

src/components/Modal/Modal.stories.tsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,14 @@ export const Modal: Story = {
2020
actionButtonLabel: "Save",
2121
},
2222
}
23+
24+
export const Full: Story = {
25+
args: {
26+
isOpen: true,
27+
title: "Modal Title",
28+
children:
29+
"This is the base component to be used in the modal window. Please change the text to preview final content for ethereum.org",
30+
actionButtonLabel: "Save",
31+
size: "full",
32+
},
33+
}

0 commit comments

Comments
 (0)