Skip to content

Commit a3480a5

Browse files
committed
fix(core): no press scale or card color fade under reduced motion
Under reduced motion a press never scales a Button, and ClickableCard, SelectableCard and Thumbnail change their hover and selection colors at once on every pointer. Under a coarse primary pointer the three cards' press release fades on the theme's exit duration and easing, capped at the press controller's release clock (component:ClickableCard FR5, component:SelectableCard FR4, component:Thumbnail FR4). The press still shows at once. Under reduced motion that fade takes at most 200 ms, opacity only. A fine primary pointer keeps the timing it had for hover and a mouse press.
1 parent 217fc46 commit a3480a5

19 files changed

Lines changed: 1013 additions & 77 deletions
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'@astryxdesign/core': patch
3+
---
4+
5+
[feat] Under a coarse primary pointer, the press release of ClickableCard, SelectableCard and Thumbnail now fades on the theme's exit duration and easing, capped at the press's release time.
6+
7+
@vjeux
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'@astryxdesign/core': patch
3+
---
4+
5+
[fix] Under reduced motion, a pressed Button no longer shrinks, and ClickableCard, SelectableCard and Thumbnail change their hover, border and selection colors at once on every pointer, whatever the theme's duration. A finger's press highlight still fades out on release, within 200 ms.
6+
7+
@vjeux

‎docs/design/reduced-motion.md‎

Lines changed: 27 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@ approved_by: cixzhang
1010
approved_at: 2026-10-24
1111
owners: [cixzhang]
1212
review_triggers: [motion, interaction, accessibility]
13-
verified_by: [scripts/check-knowledge.mjs]
13+
verified_by:
14+
[
15+
scripts/check-knowledge.mjs,
16+
packages/core/src/__tests__/ReducedMotionPress.a11y.chromium.spec.ts,
17+
]
1418
architecture: [architecture:interaction-modality]
1519
components: []
1620
families: []
@@ -32,8 +36,8 @@ deciding_specs: []
3236
A person who asks their device to reduce motion still sees every change Astryx
3337
shows, with no travel, scaling, or springing. On a touch screen a change
3438
cross-fades, as iOS does with Reduce Motion and Prefer Cross-Fade, except an
35-
in-place value change, which applies at once; with a mouse,
36-
trackpad, or keyboard the change is immediate.
39+
in-place value change and a hover or selection color, which apply at once;
40+
with a mouse, trackpad, or keyboard the change is immediate.
3741

3842
## Design principles
3943

@@ -56,7 +60,7 @@ trackpad, or keyboard the change is immediate.
5660

5761
| State | Required representation | Allowed variation |
5862
| ------------------------------------------------- | ----------------------------------------------------------------------------------------------- | -------------------------- |
59-
| reduced motion, coarse pointer | Opacity-only cross-fade of 200 ms or less (DR2); an in-place value change applies at once (DR2) | A shorter cross-fade |
63+
| reduced motion, coarse pointer | Opacity-only cross-fade of 200 ms or less (DR2); in-place values and colors apply at once (DR2) | A shorter cross-fade |
6064
| reduced motion, any other pointer | Immediate change (DR3), except a touch drag's release (DR2) | None |
6165
| no reduced-motion preference, theme on `'system'` | Outside this record | Component and theme motion |
6266
| a theme on `'always'` (DR2a) | As reduced motion, whatever the person's setting | DR1–DR3 |
@@ -75,7 +79,11 @@ trackpad, or keyboard the change is immediate.
7579
coast Astryx animates itself after a throw behaves like native momentum
7680
under Reduce Motion. An in-place value change, such as a progress fill's length or
7781
another continuous value, does not cross-fade: under reduced motion it
78-
applies at once on any pointer, with no added element (DEC-3).
82+
applies at once on any pointer, with no added element (DEC-3). A control's
83+
hover or selection color, such as SelectableCard's selection border and
84+
ring, also applies at once on any pointer, as on iOS (DEC-4). So does the
85+
onset of its press color. A touch press's release keeps its fade of 200 ms
86+
or less.
7987
- **DR2a — A theme may reduce motion for everyone.** A theme's
8088
`reducedMotion: 'always'` applies DR1–DR3 for every person, whatever their
8189
setting; `'system'` follows each person's setting (`spec:AST-108`). No theme
@@ -131,6 +139,7 @@ No normative assets are included.
131139
| DR1, DR2 | Real-browser computed animations under reduced motion, coarse pointer | Layer entrance and exit (Tooltip, Popover, menu); Dialog; modal BottomSheet; a presentation switch | An animated transform, size, or position; a spring; a property other than opacity; over 200 ms; a change with no cross-fade |
132140
| DR2 momentum | Real-browser computed animations under reduced motion after a touch throw | A flick that coasts and settles at an edge; a release that snaps to a detent, dismisses, or pages to a target | A coast replaced by a cross-fade or stopped at release; a snap, dismissal, or page that travels instead of cross-fading |
133141
| DR2 values | Real-browser computed animations under reduced motion, coarse and fine pointer | A determinate ProgressBar's fill and another continuous value changing in place | A value that animates, cross-fades, or adds an element under reduced motion fails |
142+
| DR2 colors | Real-browser computed animations under reduced motion, coarse and fine pointer | Button's press onset; ClickableCard's, SelectableCard's and Thumbnail's hover, border and selection colors | A hover or selection color, or a press onset, that animates or cross-fades; a touch release fade over 200 ms |
134143
| DR1, DR3 | Real-browser computed animations under reduced motion, fine pointer | The same components | Any animated property, or a frame where the change is partly applied |
135144
| DR4 | Component prop and theme review plus the browser checks above | A component with a motion prop or theme motion value set | A prop or theme value that restores travel or a longer animation under reduced motion |
136145

@@ -174,6 +183,19 @@ Under reduced motion they take the new value at once on any pointer.
174183

175184
Rejected: a cross-fade between the old and new value on a touch screen.
176185

186+
### DEC-4 — A color-only change of state applies at once
187+
188+
**Reference:** `design:reduced-motion/DEC-4`
189+
**Decider:** `cixzhang`, `2026-11-03`
190+
191+
A control's hover and selection colors, and the onset of its press color,
192+
change where they are and move nothing, so reduced motion has nothing to
193+
remove from them. Under reduced motion they take the new color at once on any
194+
pointer, as iOS does and as an in-place value does (DEC-3). A touch press's
195+
release keeps its fade of 200 ms or less, which confirms the tap.
196+
197+
Rejected: a cross-fade of a hover or selection color on a touch screen.
198+
177199
## Open questions
178200

179201
None.

0 commit comments

Comments
 (0)