Skip to content

fix(Pulse): keep a live signal under reduced motion - #509

Merged
lorant-one merged 2 commits into
previewfrom
fix/pulse-reduced-motion
Nov 13, 2026
Merged

lorant-one merged 2 commits into
previewfrom
fix/pulse-reduced-motion

Conversation

@lorant-one

Copy link
Copy Markdown
Member

Requested by Lorant · project thread

What

A user report and Lorant both saw the "Start with Pro: N spots at this price" badge on once-ui.com showing a flat, still blue disc where the dot should pulse.

Cause: the global reduced-motion rule from the accessibility drill (#213) shortens every animation to a single 0.01ms run. Pulse's halo animates scale(0 → 1) and opacity(1 → 0). Once that one run ends, the halo goes back to its base style, which is full size and fully opaque. So anyone whose OS asks for reduced motion sees a big static disc. Windows with "Animation effects" off counts, and Firefox follows that setting. On live once-ui.com/pricing with Chromium's reducedMotion: 'reduce', the halo reads animation-duration: 1e-05s, opacity 1 and no transform. Without reduced motion it pulses normally. This was not a regression from the recent studio ship.

Fix:

  • Pulse is marked data-motion="essential", so the global rule leaves it alone. Spinner and LogoSpinner already do this.
  • Under prefers-reduced-motion: reduce, the halo no longer grows. It stays at 0.6 scale and fades its opacity 0 → 0.5 → 0 over 2.4s. The dot still reads as live, and nothing moves.

This doesn't break anything. Studio picks it up when it moves to the next core release.

Checks

  • Rendered the badge in the dev app and sampled the halo:
    • With motion it scales 0.2 → 1 as before.
    • With reduced motion it fades 0 → 0.5 at a fixed 0.6 scale.
  • Pulse tests pass, and there's a changelog entry under Unreleased › Fixed.

Generated by Claude Code

The global reduced-motion rule cut the halo's scale animation to one
0.01ms run, leaving a flat full-size disc. Pulse is marked essential
motion and, under reduced motion, its halo stays at a fixed size and
fades in and out instead.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016gNJtwQuhoLQdpygLCVEyk
@lorant-one lorant-one self-assigned this Nov 13, 2026

Copy link
Copy Markdown
Member Author

This visual change is intended, so I've labelled the PR visual-change. The visual check captures with reducedMotion: "reduce" (scripts/visual/capture.mjs), which is exactly the case this PR fixes. Every shot with a Pulse in it changed, from the flat full-size disc to the half-size faded halo: /components/pulse and the small Pulse badges on careers, header, newsletter, waitlist, widgets, dashboard and productivity.

The larger /blocks/hero tiles (05, 06, 08) differ inside the hero image, not around a Pulse. That's an image that finished loading at a different point between captures, the same thing #510's check hit on /blocks/features.


Generated by Claude Code

@lorant-one
lorant-one merged commit 91ef89a into preview Nov 13, 2026
12 of 13 checks passed
@lorant-one lorant-one added the approved label Nov 13, 2026 — with Claude
@lorant-one
lorant-one deleted the fix/pulse-reduced-motion branch November 15, 2026 10:38
lorant-one pushed a commit that referenced this pull request Nov 19, 2026
Pulse's reduced-motion fix (#509) moves to PulseRing, which StatusIndicator
pulse draws in 3.0; CodeBlock's file tabs (#508) use SegmentedControl's
onValueChange; rimraf ^6.1.4 (#529); lockfile regenerated.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01YJHdG7ZbpQS64MtL5PVbT1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants