Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Commit 3bf03b9

Browse files
Merge pull request #294 from chakra-ui/fix/docs-typos
fix: overflow scrolling on mobile view tables in documentation
2 parents e616617 + 31525e4 commit 3bf03b9

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

website/components/MDXComponents.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,10 @@ const MDXComponents = {
180180
name: 'Table',
181181
render () {
182182
return (
183-
<CBox as="table" textAlign="left" mt="32px" width="full" {...props}>
184-
{this.$slots.default}
183+
<CBox overflowX="auto">
184+
<CBox as="table" textAlign="left" mt="32px" width="full" {...props}>
185+
{this.$slots.default}
186+
</CBox>
185187
</CBox>
186188
)
187189
}

website/pages/modal.mdx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -284,8 +284,9 @@ pass the `isCentered`
284284
:is-open="isOpen"
285285
:on-close="close"
286286
:closeOnOverlayClick="false"
287+
is-centered
287288
>
288-
<c-modal-content ref="content" is-centered>
289+
<c-modal-content ref="content">
289290
<c-modal-header>Modal Title</c-modal-header>
290291
<c-modal-close-button />
291292
<c-modal-body>
@@ -344,8 +345,9 @@ If the content within the modal overflows beyond the viewport, you can use the
344345
:on-close="close"
345346
:closeOnOverlayClick="false"
346347
:scroll-behavior="scrollBehavior"
348+
is-centered
347349
>
348-
<c-modal-content ref="content" is-centered>
350+
<c-modal-content ref="content" >
349351
<c-modal-header>Modal Title</c-modal-header>
350352
<c-modal-close-button />
351353
<c-modal-body>
@@ -400,8 +402,9 @@ Pass the `size` prop if you need to adjust the size of the modal. Values can be
400402
:on-close="close"
401403
:closeOnOverlayClick="false"
402404
:size="size"
405+
is-centered
403406
>
404-
<c-modal-content ref="content" is-centered>
407+
<c-modal-content ref="content">
405408
<c-modal-header>Modal Title</c-modal-header>
406409
<c-modal-close-button />
407410
<c-modal-body>

0 commit comments

Comments
 (0)