Skip to content

Commit 3300d0a

Browse files
committed
docs(dialog): fix typo
1 parent b4a5bbf commit 3300d0a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/dialog/src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ interface DialogOverlayProps extends DialogProps {
106106
dangerouslyBypassFocusLock?: boolean;
107107
/**
108108
* By default the dialog locks scrolling with `react-remove-scroll`, which
109-
* also injecs some styles on the body element to remove the scrollbar while
109+
* also injects some styles on the body element to remove the scrollbar while
110110
* maintaining its gap to prevent jank when the dialog's open state is
111111
* toggled. This is almost always what you want in a dialog, but in some cases
112112
* you may have the need to customize this behavior further.

website/src/pages/dialog.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ function DialogWithCustomFocusLock() {
392392
393393
`dangerouslyBypassScrollLock?: boolean`
394394
395-
By default the dialog locks scrolling with [`react-remove-scroll`](https://github.com/theKashey/react-remove-scroll), which also injecs some styles on the body element to remove the scrollbar while maintaining its gap to prevent jank when the dialog's open state is toggled. This is almost always what you want in a dialog, but in some cases you may have the need to customize this behavior further.
395+
By default the dialog locks scrolling with [`react-remove-scroll`](https://github.com/theKashey/react-remove-scroll), which also injects some styles on the body element to remove the scrollbar while maintaining its gap to prevent jank when the dialog's open state is toggled. This is almost always what you want in a dialog, but in some cases you may have the need to customize this behavior further.
396396
397397
This prop will disable `react-remove-scroll` and allow you to compose your own scroll lock component to meet your needs. Like the `dangerouslyBypassFocusLock` prop, this is generally discouraged and should only be used if a proper fallback for managing scroll behavior is provided.
398398

0 commit comments

Comments
 (0)