An open source design system that's fully customizable and agent ready
TypeScript
docs(motion): under Reduce Motion, touch cross-fades and a mouse changes at once (#8615)
Cindy Zhange1e704b45aee
diff --git a/.changeset/motion-doc-reduced-motion-touch.md b/.changeset/motion-doc-reduced-motion-touch.mdnew file mode 100644index 0000000000..33fdcd586e--- /dev/null+++ b/.changeset/motion-doc-reduced-motion-touch.md@@ -0,0 +1,7 @@+---+'@astryxdesign/cli': patch+---++[fix] The motion guide now says that under Reduce Motion, components cross-fade under a finger and change at once under a mouse, and that a value changing in place, such as a progress fill, takes its new value at once under any pointer (design:reduced-motion DR1–DR3).++@cixzhangdiff --git a/packages/cli/assets/docs/motion.doc.mjs b/packages/cli/assets/docs/motion.doc.mjsindex 326fa6ab18..23b07aa6a0 100644--- a/packages/cli/assets/docs/motion.doc.mjs+++ b/packages/cli/assets/docs/motion.doc.mjs@@ -109,7 +109,7 @@ export const docs = {content: [{type: 'prose',- text: 'Some users experience motion sensitivity; animation that feels polished to one person can cause discomfort for another. Astryx components already switch to instant changes when the OS reduced-motion setting is on. Do the same in your own animations with `@media (prefers-reduced-motion: reduce)`.',+ text: 'Some users experience motion sensitivity; animation that feels polished to one person can cause discomfort for another. When the OS reduced-motion setting is on, Astryx components change at once under a mouse or trackpad, and under a finger they cross-fade instead of moving: opacity only, in 200 ms or less. A value that changes in place, such as a progress fill, takes its new value at once under any pointer. Do the same in your own animations with `@media (prefers-reduced-motion: reduce)`, adding `(pointer: coarse)` for the touch cross-fade.',},],},