-
Notifications
You must be signed in to change notification settings - Fork 13.5k
fix(modal): change default visibility to original footer when expandToScroll is false #30310
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
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Thank you for submitting the PR! However, we require issues to be submitted first and then tied to the PR for us to proceed with reviewing. |
Done! |
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.
Let's also add a test to prevent a regression under modal/test/sheet/modal.e2e.ts
. I recommend using this test as a base. Place the new test under the rendering group.
Co-authored-by: Maria Hutt <[email protected]>
@thetaPC Done! |
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.
Almost, just some minor requests!
Co-authored-by: Maria Hutt <[email protected]>
Co-authored-by: Maria Hutt <[email protected]>
Co-authored-by: Maria Hutt <[email protected]>
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.
LGTM, requesting more approvals
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.
Thank you for the PR and your continued work on this, we really appreciate it. 🙂
I noticed an issue on md
mode that was introduced with this fix. The footer is not visible and then becomes visible after the modal is fully presented. Here are comparison videos of the modal on main
vs this PR:
main |
PR branch |
---|---|
main-sheet.mp4 |
PR-sheet.mp4 |
This can be reproduced on Chrome, Firefox and Safari without emulating a device. It does not happen in ios
mode.
@brandyscarney Thank you for pointing that issue. I'll work on it later this weekend. |
@kumibrr Let's place this PR on hold. Due to the increase number of issues submitted due to the |
Issue number: resolves #30315
What is the current behavior?
When
expandToScroll = false
, the original footer is swapped by a cloned one to avoid animation issues.But if the original footer has some eventListeners, they won't work on the cloned footer.
What is the new behavior?
Footer visibility is the original by default, and the visibility will swap to the cloned one when the animation starts, and will be swapped back to the original when the animation ends
Does this introduce a breaking change?
Other information
Screen.Recording.2025-03-26.at.19.13.47.mov
Screen.Recording.2025-03-26.at.19.14.32.mov
EDIT: The button in the videos "jump" from left to right, this is caused by another issue I discovered yesterday (stylesheets not being applied), but it's quite tricky to solve. I've opened an issue for that #30312