Repository navigation
refactor(user-interface): move motion references to keys - #14853
Conversation
The animation references, web performance reference, audit frame-capture
loop and write-css motion, interaction and show-and-hide recipes now name
their config keys in prose and carry {{key}} placeholders in code, so a
team value or project token reaches every recipe. The spring damping
column stays as examples (owner plan Q7).
Refs: #14313
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… the focus floor The write-css hover recipes write animation.duration_ms.hover, and the catalog and motion role lists give hover its own role. The focus ring recipe keeps its 2px floor with max() and states its WCAG 2.4.13 source. The exit prose and its illustration name their roles, and the lost example bounds (a 0.9 start scale, a 0.1 bounce, a 0.99 deceleration) are back as labeled examples. Refs: #14313 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UJUn7KASirHW2j2WiD68Ur
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
claude-review reviewed Code review (incremental, blocking only):
|
|
claude-security-review reviewed Security review: PR #14853, incremental (7e452db..0407c6a)No security issues found. critical-findings: 0 I already reviewed an earlier head of this pull request, so this pass reported blocking findings only. It found none. What I checkedI read every hunk of the one file in the incremental scope,
This is design guidance about which motion duration key to use. It contains nothing executable: no script, workflow, hook, permission, manifest, Instruction-surface lensItem 3 is narrowed, but only in which animation duration key applies. I checked what breaks without the old wording. Nothing it covered involves destructive actions, credentials, external writes or trust decisions, so it falls under no protected class. I did not consult the instruction exception register; the call rests on that consequence check alone. Prior findings and settled threadsThe earlier summary reported 0 findings, so nothing carries over. PR contextThe description holds no directives aimed at the review lane. SpendNone. |
A color or shadow change on hover takes duration_ms.hover; the same change from another trigger takes medium, matching the role table, motion.md and the schema. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UJUn7KASirHW2j2WiD68Ur
Closes #14313
session: Emil Kowalski X Posts
Summary
Problem: motion references stated durations, easings, scales and distances inline, so a team could not change them through config. Intent: "Everything should be configurable and extensible. We should never be hardcoding specific font sizes or ranges or any specific measurements and approaches."
The animation references and write-css motion, interaction and show-and-hide recipes now name their config key instead of restating a default number.
Fix
{{key}}form fromreference/values.md, and scaled exits are written ascalc({{...duration_ms.X}}ms * {{...exit_factor}}).animation.duration_ms.hover; the role tables list hover as its own role.max(2px, {{css.focus_ring.width}})), with its source, WCAG 2.2 success criterion 2.4.13. The 44px targets also stay stated.Verification
node --test plugins/user-interface/tests/*.test.mjs: 171 pass, 0 fail.scripts/check-affected.sh: 14 passed, 2 skipped; changelog fragments and typos clean.medium, the lost focus floor, and an exit bound that didn't match its code. All three are fixed.Changed values (AC8)
duration_ms.largexexit_factor(240ms) and a popover atduration_ms.mediumxexit_factor(200ms). The behaviors example exit moves from 0.14s to 0.2s. Owner decision Q14 (2026-11-09) keeps these.animation.stagger_ms.interval(40ms at defaults; was 50ms), since a key's default is also its role's ceiling (plan Q6).Acceptance criteria
Related
Refs #14214
🤖 Generated with Claude Code
https://claude.ai/code/session_01UJUn7KASirHW2j2WiD68Ur