Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix(modal): show footer with size=full
  • Loading branch information
TimKolberger committed Dec 28, 2021
1 parent 94e4e4d commit eb58506
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/twelve-papayas-judge.md
@@ -0,0 +1,5 @@
---
"@chakra-ui/theme": patch
---

Fixed an issue where the Modal Footer was out of the viewport for `size="full"`.
9 changes: 8 additions & 1 deletion packages/theme/src/components/modal.ts
Expand Up @@ -83,7 +83,14 @@ const baseStyle: PartsStyleFunction<typeof parts> = (props) => ({
function getSize(value: string): PartsStyleObject<typeof parts> {
if (value === "full") {
return {
dialog: { maxW: "100vw", minH: "100vh", my: 0 },
dialog: {
maxW: "100vw",
minH: "100vh",
"@supports(min-height: -webkit-fill-available)": {
minH: "-webkit-fill-available",
},
my: 0,
},
}
}
return {
Expand Down

0 comments on commit eb58506

Please sign in to comment.