fix(components): respect prefers-reduced-motion in animations (f951529)#279
Merged
Conversation
Syncs upstream nuxt/ui commit f951529 (#6723) — wrap looping animate-* utilities in the motion-safe: variant and add motion-reduce: fallbacks so animations honor the user's prefers-reduced-motion setting. - chat-messages.ts: bounce indicator dots → motion-safe: - chat-shimmer.ts: shimmer + rtl-shimmer → motion-safe:; base gains motion-reduce:bg-none motion-reduce:text-muted - progress.ts: all 10 indicator animations (incl. fork-extra progressbar-loading / -vertical) → motion-safe:; base indicator gains motion-reduce:data-[state=indeterminate]:animate-pulse - table.ts: all 5 loading thead animations (incl. fork-extra progressbar-loading) → motion-safe:; base loading thead gains motion-reduce:after:inset-x-0 motion-reduce:after:animate-pulse - docs: reduced-motion ::tip added to chat-shimmer / progress / table - Marquee N/A (b24ui has no Marquee component) Snapshots regenerated (118 across 14 spec files — ChatTool/ChatReasoning embed ChatShimmer, Toast embeds Progress). Suite: 5485 passed / 6 skipped. Ledger: cursor → f951529; previous entry 17196ec reconciled to PR #278. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JS8ypVfQSFzYVZzkTHhURb
IgorShevchik
added a commit
that referenced
this pull request
Jul 15, 2026
…280) Syncs upstream nuxt/ui commit 2cc2849 (#6729) — add a sideEffects field to package.json so consumer bundlers can tree-shake unused JS barrel exports while preserving CSS side effects. - package.json: add "sideEffects": ["**/*.css"] after "main" (glob covers dist/runtime/index.css + .nuxt/b24ui.static.css) - no dependency change → pnpm-lock.yaml untouched Manifest metadata only. Suite: 5485 passed / 6 skipped. Ledger: cursor → 2cc2849; previous entry f951529 reconciled to PR #279. Claude-Session: https://claude.ai/code/session_01JS8ypVfQSFzYVZzkTHhURb Co-authored-by: Shevchik Igor <noreply@anthropic.com>
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.
Syncs upstream nuxt/ui commit
f951529— fix(components): respectprefers-reduced-motionin animations (#6723).What
Wraps every looping
animate-*utility in themotion-safe:variant and addsmotion-reduce:fallbacks so animations honor the user'sprefers-reduced-motionsetting.b24ui port
src/theme/chat-messages.ts— the three bounce indicator dots →motion-safe:.src/theme/chat-shimmer.ts—animate-[shimmer…]/rtl:animate-[shimmer-rtl…]→motion-safe:; base gainsmotion-reduce:bg-none motion-reduce:text-muted(static muted text).src/theme/progress.ts— all 10compoundVariantsindicator animations →motion-safe:(bothdata-[state=indeterminate]:animate-*and the…:rtl:animate-*halves), including the fork-extraprogressbar-loading/progressbar-loading-verticalvariants; baseindicatorgainsmotion-reduce:data-[state=indeterminate]:animate-pulse.src/theme/table.ts— all 5 loadingtheadafter:animate-*(+rtl:) →motion-safe:, including the fork-extraprogressbar-loadingvariant; base loadingtheadgainsmotion-reduce:after:inset-x-0 motion-reduce:after:animate-pulse.::tipadded tochat-shimmer.md,progress.md,table.md.Tests
Theme-class changes only. Snapshots regenerated for the directly-edited components and the components that embed them — ChatTool / ChatReasoning render ChatShimmer, and Toast renders a Progress bar: 118 snapshots across 14 spec files (nuxt + vue variants), all diffs pure
motion-safe:/motion-reduce:class additions.Verify (
CI=true)dev:prepare·lint·typecheck·test·build— all green. Suite 5485 passed / 6 skipped (unchanged).Ledger: cursor advanced to
f951529; previous entry17196ecreconciled to PR #278.🤖 Generated with Claude Code
Generated by Claude Code