docs: define consistent reduced motion behavior #12660
Closedsaphid(GitHub profile, opens in a new tab)wants to merge 2 commits into
main fromrefs/pull/12660/headopened View on GitHubgithub-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:S
- docs/internals/consistency-reduced-motion.md line 14OutdatedResolvedby coderabbitai[bot](GitHub profile, opens in a new tab)@@ -0,0 +1,14 @@1+# Motion preferences across entry points2+3+Proposed invariant: a request for reduced motion changes how an action reaches its destination, not the destination, available content, focus or selection. Apply it to programmatic navigation and reveal actions whether they begin in search, settings, a preview, a menu or a keyboard shortcut.4+5+Apple’s [Motion](https://developer.apple.com/design/human-interface-guidelines/motion) guidance calls for purposeful, optional motion and feedback that preserves information. Its [Accessibility](https://developer.apple.com/design/human-interface-guidelines/accessibility) guidance supports adapting motion to people’s preferences. The cross-entry-point constraint here is a proposed application of those principles, not a requirement for identical native animations.6+7+Web and Electron read the browser’s reduced-motion preference; React Native uses the device accessibility preference. Read the current preference when starting an action, or subscribe to changes. Do not cache it for the lifetime of a screen. A missing preference API must not prevent navigation. Existing instant reveals and animation APIs that already honor the platform setting need no replacement.8+9+Reduce unnecessary spatial animation while retaining an immediate destination indicator, focus, selection and meaningful input acknowledgement. Direct manipulation, including dragging and continuous scrolling while a key is held, still follows the person’s input. Native system transitions may adapt differently from web transitions. Neither exception permits a custom programmatic jump to ignore the preference.10+11+Acceptance cases:12+13+Revealing the same target through search, preview inspection or a keyboard/menu route reaches the same content with normal and reduced motion.14+Reduced motion removes the custom animated travel without hiding content or suppressing the action’s focus or selection changes.docs/internals/consistency-reduced-motion.md line 16OutdatedResolvedby coderabbitai[bot](GitHub profile, opens in a new tab)@@ -0,0 +1,16 @@1+# Motion preferences across entry points2+3+Proposed invariant: a request for reduced motion changes how an action reaches its destination, not the destination, available content, focus or selection. Apply it to programmatic navigation and reveal actions whether they begin in search, settings, a preview, a menu or a keyboard shortcut.4+5+Apple’s [Motion](https://developer.apple.com/design/human-interface-guidelines/motion) guidance calls for purposeful, optional motion and feedback that preserves information. Its [Accessibility](https://developer.apple.com/design/human-interface-guidelines/accessibility) guidance supports adapting motion to people’s preferences. The cross-entry-point constraint here is a proposed application of those principles, not a requirement for identical native animations.6+7+Web and Electron read the browser’s reduced-motion preference; React Native uses the device accessibility preference. Read the current preference when starting an action, or subscribe to changes. Do not cache it for the lifetime of a screen. A missing preference API must not prevent navigation. Existing instant reveals and animation APIs that already honor the platform setting need no replacement.8+9+Reduce unnecessary spatial animation while retaining an immediate destination indicator, focus, selection and meaningful input acknowledgement. Direct manipulation, including dragging and continuous scrolling while a key is held, still follows the person’s input. Native system transitions may adapt differently from web transitions. Neither exception permits a custom programmatic jump to ignore the preference.10+11+Acceptance cases:12+13+Revealing the same target through search, preview inspection or a keyboard/menu route reaches the same content with normal and reduced motion.14+Reduced motion removes the custom animated travel without hiding content or suppressing the action’s focus or selection changes.15+Changing the preference while the client remains open applies to the next action.16+If the preference API is unavailable, navigation still completes using a safe fallback.
macroscopeapp[bot](GitHub profile, opens in a new tab) approved these changes
juliusmarminge closed this
Sign in to join this conversation.
Approvability#
Verdict: Approved at
6d9dfb1Macroscope's review found this PR approvable — This PR adds one documentation file describing proposed reduced-motion consistency rules and acceptance cases. It contains no executable or configuration changes, so it does not alter runtime behavior, product defaults, or static-analysis settings.
You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).