Repository navigation
fix: skip menu fade setup when motion cannot play - #4133
Merged
Merged
Conversation
The closing menu wrote data-leaving and removed it in the same task when playMotion declined the fade before presentation or under reduced motion. Ask the shared motion gate before preparing the fade, as the panel view already does. Keep the normal fade and unchanged-write detector intact. The startup replay case and the reduced-motion keyboard menu journey fail before the change and pass after. The keyboard journey now covers both motion preferences. Rebuilt the committed kernel; 562 runtime tests pass. Closes #4121
# Conflicts: # dist/kernel/kernel.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The menu's closing transition set
data-leavingbefore asking whether motion could play. Before first presentation, or with reduced motion, the shared motion gate returned no animation and the same paint removed the attribute again. The browser write detector correctly rejected that round trip.Check the existing
motionPlays()gate before preparing the menu fade. Ordinary closing fades retain their rows and inert state; startup and reduced-motion closes remove the menu directly. This preserves #4001's animation intent and the startup replay guarantee, without changing the write detector.The reported startup test failed on current main and passes with this change. The menu keyboard journey now covers both motion preferences. Copy-link coverage and all 562 runtime tests pass; the committed kernel was rebuilt.
Closes #4121 — automated triage