Skip to content

fix: skip menu fade setup when motion cannot play - #4133

Merged
leaf-agent merged 2 commits into
mainfrom
fix/issue-4121
Oct 25, 2026
Merged

leaf-agent merged 2 commits into
mainfrom
fix/issue-4121

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

The menu's closing transition set data-leaving before 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

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
@leaf-agent
leaf-agent merged commit 41fc9bb into main Oct 25, 2026
5 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-4121 branch October 25, 2026 21:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

On me startup test detects a repeated data-leaving menu write

1 participant