-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Global Styles: fix screens crashing on exit animation #65790
Conversation
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
As noted by @t-hamano in the related PR, E2E tests are currently failing for an unrelated issue — core ticket: Core ticket: core.trac.wordpress.org/ticket/60666 |
Size Change: +86 B (0%) Total Size: 1.77 MB
ℹ️ View Unchanged
|
The ideal solution would be each Is this possible to pull off? At first sight it doesn't seem terribly hard. And it would be much better than patching the screen components one by one. |
I 100% agree with you, this PR was just an emergency patch to make sure that 19.4 doesn't ship with this bug — compared to the other "emergency fix" in #65765, this one has the advantage that the screen's contents are not removed while animating out.
I currently have little time to work on this — but if you feel like working on it, that would be great! And I'd be happy to pair / review. |
Thanks for the PR! If we include this PR in 19.4, do we not need to merge #65765? |
I think so, this could be an alternative to #65765. I don't have a strong preference on which solution to pick — #65765 is simpler but leads to a less refined animation, the one in this PR is more complex and needs to be tested well to make sure there are no unintended consequences. Or maybe we can work out a fix directly in |
Gutenberg 19.3 was released on September 25th. Gutenberg 19.4 will be released two weeks later, on October 9th. For reference, here is the Slack post where the preparation of Gutenberg 19.3 RC1 was announced: https://wordpress.slack.com/archives/C02QB2JS7/p1726624220894339 Maybe someone knows who is responsible for the Gutenberg 19.4 release. |
Temporary fix for #65711
Alternative to #65765
Related to #64777
What?
This PR fixes a critical error that occurs when returning to the previous screen from the shadow presets panel or the font presets panel.
Why?
@t-hamano found that the problem was caused by #64777.
From this comment:
How?
Keep around the previous values of the params when they become undefined during an exit animation, as part of the suggestion in this comment.
Testing Instructions
Screenshots or screencast
Kapture.2024-10-01.at.15.47.37.mp4