Repository navigation
feat(gui): complete the reduced-motion story - #256
Merged
Merged
Conversation
The prior reduced-motion handling only zeroed the CSS transition tokens; Svelte JS transitions, smooth-scroll, and keyframe animations (the viewport spinner) kept moving — the "complete reduced-motion" claim was overstated. - Replace the token-only zeroing with one global @media (prefers-reduced-motion) block in reset.css that flattens ALL CSS animations, transitions, and smooth scrolling to near-instant (universal selector with !important, the canonical a11y pattern; scoped stylelint-disable for the required !important). This also covers keyframe loops like the viewport spinner. - Gate the JS-driven motion the CSS block cannot reach via svelte/motion's prefersReducedMotion: Toasts' fly/fade/flip collapse to duration 0, and StreamLog's scrollIntoView uses "auto" instead of "smooth". - Drop the superseded tokens.css reduced-motion block and its overstated comment. Part of #246. Closes #250.
Closed
6 tasks
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.
Closes #250. Part of epic #246 (post-redesign audit follow-ups).
Problem
Reduced-motion only zeroed the CSS transition tokens. Svelte JS transitions (Toasts fly/fade/flip),
scrollIntoView({behavior:"smooth"})in StreamLog, and keyframe animations (the viewport spinner) kept moving — the "complete reduced-motion story" was overstated.Fix
@media (prefers-reduced-motion: reduce)block inreset.cssflattening all CSS animations, transitions, and smooth scroll to near-instant (universal selector +!important— the canonical a11y pattern; scopedstylelint-disablefor the required!important). Covers keyframe loops like the spinner.svelte/motion'sprefersReducedMotion: Toasts collapse to duration 0; StreamLog scroll uses"auto".Verification
lint:css,lint:css:vars,check:svelte(0 errors),tsc, 316/316 tests ✓svelte/motionintegration).