Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: allow user optin to vh polyfill
- Loading branch information
1 parent
732195d
commit ec23eb0
Showing
3 changed files
with
25 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
"@chakra-ui/styled-system": patch | ||
"@chakra-ui/theme": patch | ||
--- | ||
|
||
Allow user optin to the 100vh polyfill because it's only useful in absolute or | ||
fixed layout modes. | ||
|
||
Chakra new polyfills the `100vh` attribute to use either the literal `100vh` or | ||
`-webkit-fill-available` where supported. To use this feature, set the height | ||
values to `$100vh` instead of `100vh`. | ||
|
||
```jsx live=false | ||
// Might not work in all cases | ||
<Box minHeight="100vh" position="absolute"> | ||
Test | ||
</Box> | ||
|
||
// Polyfilled version ensures 100vh work correctly | ||
<Box minHeight="$100vh" position="absolute"> | ||
Test | ||
</Box> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ec23eb0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
chakra-ui-storybook – ./
storybook.chakra-ui.com
chakra-ui-storybook.vercel.app
chakra-ui-storybook-git-main-chakra-ui.vercel.app
chakra-ui-storybook-chakra-ui.vercel.app