-
Notifications
You must be signed in to change notification settings - Fork 89
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 background scroll #3907
base: main
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: 7d5d6f8 The changes in this PR will be included in the next version bump. This PR includes changesets to release 4 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
@liamsms is attempting to deploy a commit to the FED Team Team on Vercel. A member of the Team first needs to authorize it. |
this change should probably be built as a prop in |
Hi - I've updated this to be a prop |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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.
Will follow up with feedback
4230eaf
4230eaf
to
8a7b587
Compare
8a7b587
to
7d5d6f8
Compare
/** | ||
* Disables scrolling the document body while the floating component is open. | ||
*/ | ||
disableScroll?: boolean; |
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.
We should check if we're happy with the naming here
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.
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 think the choices are: lockScroll, preventScroll or disableScroll
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.
lockScroll
is consistent with Floating UI's terminology but will it be intuitive for our users, and be consistent in naming with other components in Salt?
Closes #3906
Added
disableScroll
prop to FloatingComponent, which sets the document body overflow tohidden
to prevent background scrolling.