-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(Dialog): Fix body scroll when open dialog #12574
Conversation
packages/fluentui/react-northstar/src/components/Dialog/Dialog.tsx
Outdated
Show resolved
Hide resolved
packages/fluentui/react-northstar/src/components/Dialog/Dialog.tsx
Outdated
Show resolved
Hide resolved
f45d0f7
to
5c15f76
Compare
packages/fluentui/react-northstar/src/components/Dialog/Dialog.tsx
Outdated
Show resolved
Hide resolved
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.
I don't think that this will be enough. When we discussed this issue with @jurokapsiar we tried https://www.npmjs.com/package/body-scroll-lock which obviously does more things
Another question: should be Dialog
scrollable without backdrop
?
There is also a prototype for nested dialogs |
Asset size changesSize Auditor did not detect a change in bundle size for any component! Baseline commit: 3f8cd747174532bac3cb81c8a608c2b43f5ced82 (build) |
Perf AnalysisNo significant results to display. All results
Perf Analysis (Fluent)Perf comparison
Perf tests with no regressions
|
054b169
to
9dc6eb5
Compare
Updated using the suggested package |
9dc6eb5
to
af1abbf
Compare
packages/fluentui/react-northstar/src/components/Dialog/Dialog.tsx
Outdated
Show resolved
Hide resolved
packages/fluentui/react-northstar/src/components/Dialog/Dialog.tsx
Outdated
Show resolved
Hide resolved
decff01
to
37278be
Compare
61187c5
to
9619eb5
Compare
3275c25
to
079b468
Compare
079b468
to
7c81b48
Compare
Co-Authored-By: Oleksandr Fediashov <alexander.mcgarret@gmail.com>
* fix(Dialog): Fix body scroll when open dialog * Fix(Dialog) Review changes * Fix(Dialog) add change log * fix(Dialog): Update yarn.lock Co-Authored-By: Oleksandr Fediashov <alexander.mcgarret@gmail.com> * fix(Dialog): Update changelog * fix(Dialog): update changelog Co-authored-by: Charles Assuncao <chassunc@microsoft.com> Co-authored-by: Oleksandr Fediashov <alexander.mcgarret@gmail.com>
Pull request checklist
$ yarn change
Description of changes
Prevents scroll on the body element toggling the overflow css prop
Focus areas to test
(optional)
Microsoft Reviewers: Open in CodeFlow