Repository navigation
fix(core): transform transitions land at once under reduced motion, from the setting or a theme - #13512
Conversation
…' ships Plumbing for spec:AST-108 FR6, with no change for anyone today: no public theme can set reducedMotion, and resolveKnobs still resolves every theme to 'system', so no theme marks its root. - privateAttributes/reducedMotion.stylex.ts owns data-astryx-reduced-motion: reducedMotionMarkProps and setRootReducedMotionMark write it, and themeReducesMotion reads it on an element, an ancestor, or <html>. - Theme marks its wrapper, and the root theme marks <html>, with the attribute and the --_astryx-reduced-motion custom property when the theme's motion resolves reducedMotion to 'always'. The server renders the mark. - The animator, reducedMotionFade and the layout glide count the mark as the person's Reduce Motion setting. - ThemeReducedMotion (internal) widens to 'system' | 'always'. Tests cover the reader, the three readers' use of it, and the Theme mark through a mocked resolveMotionKnobs. Co-authored-by: Christopher Chedeau <[email protected]>
…ed formatting out
…and the chat scroll, streaming text and swipe settle read it
Internal, like the mark it builds on: no theme can set reducedMotion
'always' yet, so nothing changes for anyone.
- theme/reducedMotion.markers.stylex.ts defines reducedMotionScope. Theme
puts it on the marked wrapper, and the root theme writes its class on
<html> beside the mark, so a Reduce Motion style keyed on
stylex.when.ancestor('[data-astryx-reduced-motion]', reducedMotionScope)
reaches portaled layers.
- motion/reducedMotion.ts adds reducesMotion(element): the person's setting
or the mark. hooks/useReducesMotion.ts is its hook form, for a hook that
holds no element: the setting, followed live, or the theme tree through
ThemeReducesMotionContext, where a nested theme never removes an
ancestor's 'always'.
- useChatStreamScroll, useStreamingText and ItemSwipeLayer read them.
- motion/reducedMotion.test.ts guards the rest with lists that only shrink:
every Reduce Motion arm needs its twin on the mark, and every script read
of the setting needs the mark. A read through a constant that holds the
query counts.
- Tests reach 'always' through a themeMotion mock
(theme/reducedMotionAlways.testing.ts).
Co-authored-by: Christopher Chedeau <[email protected]>
…le that calls no StyleX The animator reads the reduced-motion mark through its owner module, which the private-attribute rule names .stylex.ts. The module imports nothing, and the check that the graph reaches no @stylexjs import still holds it to that.
…er module, which the animator reads
The old base (#9761) landed squashed, so this resolves as main plus this branch's own changes. main's later Reduce Motion work updates the pending lists: ClickableCard, SelectableCard, Spinner's rotor, Thumbnail, the press module and useMobileKeyboard are listed; Lightbox, Spinner, AppShell and MobileNav come off (main removed their arms or reads).
…eaches the hooks that hold no element Main now carries the mark's private-attribute module, the root and wrapper marks, and the animator's read of them (#9761), so this re-port keeps only what main lacks: Theme passes 'always' down through ThemeReducesMotionContext (beside Theme's other contexts in useTheme.ts; a nested theme keeps an ancestor's), and motion/reducedMotion.ts gains reducesMotion(element) and its hook form useReducesMotion, which the chat scroll and streaming text now read. The swipe release already reads the mark through reducedMotionFade. The other script readers follow in a stacked change. Co-authored-by: Christopher Chedeau <[email protected]>
…me's 'always' Carousel's button and index scrolls, BottomSheet's alignment, cross-fade, haptic and scroll settle, MobileNav's and AppShell's close hold, the mobile keyboard's scroll and press feedback's release now decide through motion/reducedMotion.ts (reducesMotion or useReducesMotion), which counts a theme's reducedMotion: 'always' mark beside the person's setting. Resizable's close slide, a DOM-free entry, ORs the setting with the mark through the mark's owner module, as animatedLayout does. A guard test keeps any new script read of the setting on the same rule (spec:AST-108 FR6). Stacked on the change that adds useReducesMotion. Co-authored-by: Christopher Chedeau <[email protected]>
…the motion foundation loads in plain Node scripts/motion-node-load.test.mjs requires the motion foundation to reach no theme module and no StyleX module. motion/reducedMotion.ts now reads ThemeReducesMotionContext from privateAttributes/reducedMotion.stylex.ts, the mark's owner module, which calls no StyleX, instead of theme/useTheme.ts. reducedMotion.ts holds a hook, so it starts with 'use client'.
…dule, which loads no animator motion/reducedMotion.ts imports the animator, so a reader on every page (press feedback, streaming text) would load it at first load. reducesMotion and useReducesMotion now live in privateAttributes/reducedMotion.stylex.ts beside the mark and its context; that module loads no animator, theme or StyleX module. reducedMotionFade calls the same reducesMotion. spec:AST-108 FR6 gains the sentence that script readers decide through that module. First-load gzip against main: docs +72 B, form +56 B, menu -42 B, table +11 B, a Markdown page +122 B.
… module; a tighter guard; BottomSheet and Resizable tests Every reader in this change now imports reducesMotion or useReducesMotion from privateAttributes/reducedMotion.stylex.ts (merged from the base), which loads no animator, so press feedback and Carousel no longer pull the animator into first-load JavaScript. Resizable calls reducesMotion too, so its inline copies go. The guard now counts each listed file's spellings of the setting's query and fails any call of the animator's setting-only read outside the motion foundation. BottomSheet (a coarse pointer's fade, no alignment travel) and Resizable (no spring-back past the maximum) gain tests under a theme's 'always' with the setting off. snap-paging's pager-only list no longer holds the owner module, which every reader loads. spec:AST-108's verification table names the guard. First-load gzip against main for the stack: docs +74 B, form +24 B, menu +64 B, table +108 B.
…ny quote style and the exported query constants The guard counted only a single-quoted query, so a template-literal read or a read through REDUCED_MOTION_FADE_QUERY, REDUCED_MOTION_INSTANT_QUERY or REDUCED_MOTION_COARSE_QUERY passed it. It now matches the query in any quote style and fails any use of those constants outside the file that owns each. The animator's entry leaves the allow-list (it reads through reducesMotion now). AST-108's verification row and the changeset say so.
…educesMotion The animator kept its own copy of the rule (the setting, or the mark on the target). It now calls reducesMotion(target) from the mark's owner module, and defaultPrefersReducedMotion delegates to reducesMotion(), so one rule remains. The changeset's list of readers that follow names Resizable.
…de a longer quoted query A reader that spells '(pointer: fine) and (prefers-reduced-motion: reduce)' passed the guard, which matched only a quote directly before the setting's query. It now matches the setting's query anywhere inside a quoted string.
…rom the setting or a theme One shared helper, privateAttributes/transformMotion.stylex.ts, gives a transform's duration a factor that reads the --_astryx-reduced-motion property Theme writes where it writes the reduced-motion mark, and the media key for the person's setting. 30 transform transitions build their durations from it: chevrons that turned even under the setting now land at once, and the sites that only followed the media query now follow a theme that reduces motion for everyone too. Colour and opacity keep their durations. A Chromium spec sweeps eight stories under no reduction, the setting, a nested marked theme and a marked root.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
|
/approve-spec cee9cb8 |
There was a problem hiding this comment.
Requesting changes for one description fix; the code can stay as it is.
- Regression: the description still says this pull request is "Stacked on #13138 … which targets
main" and calls #13138 the "base of this stack", but #13138 has merged intomainand this pull request now targetsmaindirectly, so replace that line with a note that #13138 has merged and drop "base of this stack".
The merge of main leaves every line of this pull request as it was: the new spec still fails on main and passes here, and the TreeList, unit and build checks pass. Once the description is updated, nothing else needs to change.
Claims and files checked
Review mode: incremental; reason: none
- Since the last review: #13138 merged into
mainand this head mergesmain; the merge's three conflicts keep this pull request's files exactly as they were, andmaintouches only the tool-call row's text in one changed file, outside this pull request's line. - Changeset: under the Reduce Motion setting, the listed disclosure chevrons now land at once. Verified: each of the 13 chevron styles has a literal
0ssetting key, none of which the base has; 40 ms after a click under Reduce Motion the Collapsible chevrons are mid-turn on the base and at rest with this change. - Changeset: the resize handle's pill now changes at once too. Verified:
Resizable/ResizeHandle.tsx:206-210gives0sto opacity, background colour and transform. - Changeset: transform transitions also read the signal a theme with
reducedMotion: 'always'writes, which no theme can set yet, so that part changes nothing today. Verified: the factor in 29 files;theme/motionKnobs.ts:82always resolves'system'. - Changeset: a patch fix for the core package. Verified; the changeset check passes.
- Description: under reduced motion a transform now lands at once, from the setting or a theme. Verified: the setting keys, the factor, and Stepper's script read (
Stepper/Step.tsx:1120,:1128). - Description: before, 13 chevrons and the pill still turned under the setting. Verified: none of the 14 base styles has a setting key, and the base Collapsible chevrons compute 0.125 s under Reduce Motion.
- Description: sites that already followed the setting ignored a theme that reduces motion for everyone. Verified: the base has no factor; on a marked page the base Dialog still travels and scales for 0.4 s.
- Description: colour and opacity changes keep their durations except where the survey says otherwise. Verified: each multi-property site that changes under the mark (the pill, the scrim, Toast, the two chat buttons, the bottom sheet, the Dialog) has its own survey row.
- Description: where a site's setting rule already zeroed every property, the theme case matches it. Verified: Toast, the Overlay scrim and the chat scroll and dictation buttons.
- Description: one case differs on purpose, the Dialog's entrance. Verified:
Dialog/Dialog.tsx:265-268,:284-291; the bottom sheet's row names its touch fade as the same follow-up. - Description: stacked on the script-readers pull request, which targets
main. False: that pull request has merged intomain, and this pull request now targetsmaindirectly (finding above). - Description: one helper with two StyleX consts in the existing CSS-side module. Verified:
motion/reducedMotion.stylex.ts:54-57. - Description: no new variable; Theme already writes the property where it writes the mark, and a nested theme never writes it back. Verified:
theme/Theme.tsx:117-118,:456,:504-507, unchanged by this pull request. - Description: each site builds on its own token, adds the literal setting key where it had none, and spells neither the property nor the mark. Verified: only the helper and the tests spell them.
- Description: Stepper reads the shared hook and gives every connector
0s. Verified:Stepper/Step.tsx:1120,:1128. - Description: the survey covers every transform transition in Core. Verified: every non-test Core transition that names
transformis in this pull request, apart from the press scale and the mega-menu panel entrance, which the survey leaves out; the mergedmainadds none. - Description: slides a script waits on (Drawer, MobileNav, the bottom sheet stack, the date field title) give 0.01 s under the mark. Verified: each adds
settle. - Description: the bottom sheet's entrance and exit give
0sunder the mark, its own wait resolves a zero duration, and on a touch screen the setting fades it in over 200 ms. Verified:BottomSheet/BottomSheetPanel.tsx:391,:394,:749. - Description: the scrim's hover clip delay takes the factor too. Verified:
Overlay/OverlayScrim.tsx:58. - Description: the new spec covers eight stories in four modes, failing without the change and passing with it. Verified: 8 of 8 fail on
mainwith only the spec added, and 8 of 8 pass on this head. - Description: the TreeList test now expects the chevron to land at once and passes 18 of 18. Verified: 18 of 18 pass in Chromium on this head.
- Description: tests that pin duration strings and one snapshot are updated, and the Stepper timing tests pass. Verified: the unit tests for DateInput, ProgressBar, Toast, the theme snapshot, Stepper, motion and the tool-call rows pass on this head (48 files, 1565 tests).
- Description: type check, lint, formatting, the core and Storybook builds and the changeset check are clean. Verified on this head: the core build and its type check pass, Prettier is clean, ESLint has no errors and three warnings on lines this pull request does not touch, the Storybook build passes, and the changeset check passes.
- Description: under
'always'the bottom sheet opens and closes in one frame, against 18 to 19 frames without this change; the other cases settle in one frame or matchmain. Consistent with the code (BottomSheet/BottomSheetPanel.tsx:391,:749); the frame counts come from the author's test-only build and were not re-measured. - Description: the changeset says the theme case changes nothing today. Verified.
- Description: 38 files, about +327/−60, most sites changing one duration line. Verified: 38 files, 327 added, 60 deleted.
- Description: the listed overlapping pull requests change different lines. Verified: each one's hunks in the shared files are apart from this pull request's; two of them have since merged.
.changeset/reduced-motion-transform-transitions.md,packages/core/src/motion/reducedMotion.stylex.ts,packages/core/src/motion/__tests__/reducedMotionTransform.a11y.chromium.spec.ts,packages/core/src/Stepper/Step.tsx,packages/core/src/TreeList/__tests__/TreeListExpand.interaction.browser.spec.ts: clear.BottomSheet/BottomSheetPanel.tsx,BottomSheet/BottomSheet.tsx,Dialog/Dialog.tsx,Drawer/Drawer.tsx,MobileNav/MobileNav.tsx,DateInput/TouchDateField.tsx,Toast/Toast.tsx,Overlay/OverlayScrim.tsx: clear; each entrance, slide or fade takes the factor, withsettlewhere a script waits, as the survey says.CodeBlock/CodeBlock.tsx,Collapsible/Collapsible.tsx,MultiSelector/MultiSelector.tsx,Selector/Selector.tsx,TabList/TabMenu.tsx,TreeList/TreeListItem.tsx,Table/plugins/groupedRows/useTableGroupedRows.tsx,Table/plugins/rowExpansion/useTableRowExpansion.tsx,Table/plugins/tree/useTableTreeData.tsx,TopNav/TopNavMenu.tsx,TopNav/TopNavMegaMenu.tsx,Resizable/ResizeHandle.tsx: clear.Banner/Banner.tsx,Chat/ChatDictationButton.tsx,Chat/ChatLayoutScrollButton.tsx,Chat/ChatToolCalls.tsx,ComplexSelector/ComplexSelector.tsx,ProgressBar/ProgressBar.tsx,SideNav/SideNavCollapseButton.tsx,SideNav/SideNavItem.tsx,Switch/Switch.tsx: clear.DateInput/DateInputTouch.test.tsx,ProgressBar/ProgressBar.test.tsx,Toast/ToastViewport.test.tsx,theme/__snapshots__/themeIndicatorSeams.test.tsx.snap: clear.
There was a problem hiding this comment.
Approved pending CI: CI finished on this head with one failed WebKit interaction leg, which needs a re-run before merge; every other job passes.
The code is unchanged since the last review. The failed leg is the Switch touch proof "a second tap mid-travel catches the thumb", which passed its motion checks and then stopped on its frame-starvation guard (88 ms with no frame). Under a finger the thumb has no CSS transition (Switch/Switch.tsx:584-587), so the changed duration at Switch/Switch.tsx:592 never runs on that path. The touch-screen cross-fade under a theme that reduces motion for everyone stays the follow-up the description names.
Claims and files checked
Review mode: same-head; reason: none
- Since the last review: the code is the same; an engineering owner approved this head, the pull request left draft, and CI started. Changed rules since the last review (0).
- Changeset: under the Reduce Motion setting, the listed disclosure chevrons now land at once. Verified: each of the 13 chevron styles has a literal
0ssetting key, none of which the base has; 40 ms after a click under Reduce Motion the Collapsible chevrons are mid-turn on the base and at rest with this change. - Changeset: the resize handle's pill now changes at once too. Verified:
Resizable/ResizeHandle.tsx:206-210gives0sto opacity, background colour and transform. - Changeset: transform transitions also read the signal a theme with
reducedMotion: 'always'writes, which no theme can set yet, so that part changes nothing today. Verified: the factor at every changed site;theme/motionKnobs.ts:82always resolves'system'. - Changeset: a patch fix for the core package. Verified; CI's typecheck, lint and core build pass on this head.
- Description: under reduced motion a transform now lands at once, from the setting or a theme. Verified: the setting keys, the factor, and Stepper's script read (
Stepper/Step.tsx:1120,:1128). - Description: before, 13 chevrons and the pill still turned under the setting. Verified: none of the 14 base styles has a setting key, and the base Collapsible chevrons compute 0.125 s under Reduce Motion.
- Description: sites that already followed the setting ignored a theme that reduces motion for everyone. Verified: the base has no factor; on a marked page the base Dialog still travels and scales for 0.4 s.
- Description: colour and opacity changes keep their durations except where the survey says otherwise. Verified: each multi-property site that changes under the mark (the pill, the scrim, Toast, the two chat buttons, the bottom sheet, the Dialog) has its own survey row.
- Description: where a site's setting rule already zeroed every property, the theme case matches it. Verified: Toast, the Overlay scrim and the chat scroll and dictation buttons all land within one frame under both.
- Description: one case differs on purpose, the Dialog's entrance. Verified:
Dialog/Dialog.tsx:264-267; the bottom sheet's row names its touch fade as the same follow-up. - Description: builds on the script-readers pull request, which has merged into
main, and this pull request targetsmain. Verified: that pull request merged intomain, its merge commit is this pull request's base, and this pull request targetsmain. - Description: one helper with two StyleX consts in the existing CSS-side module. Verified:
motion/reducedMotion.stylex.ts:54-57. - Description: no new variable; Theme already writes the property where it writes the mark, and a nested theme never writes it back. Verified:
theme/Theme.tsx:117-118,:345-349,:456,:507, unchanged by this pull request. - Description: each site builds on its own token, adds the literal setting key where it had none, and spells neither the property nor the mark. Verified: only the helper and the tests spell them.
- Description: Stepper reads the shared hook and gives every connector
0s. Verified:Stepper/Step.tsx:1120,:1128; the hook reads the setting or the theme (privateAttributes/reducedMotion.stylex.ts:110-113). - Description: the survey covers every transform transition in Core. Verified: every non-test Core transition that names
transformis in this pull request, apart from the press scale and the mega-menu panel entrance, which the survey leaves out. - Description: slides a script waits on (Drawer, MobileNav, the bottom sheet stack, the date field title) give 0.01 s under the mark. Verified: each adds
settle. - Description: the bottom sheet's entrance and exit give
0sunder the mark, its own wait resolves a zero duration, and on a touch screen the setting fades it in over 200 ms. Verified:BottomSheet/BottomSheetPanel.tsx:391,:394,:749. - Description: the scrim's hover clip delay takes the factor too. Verified:
Overlay/OverlayScrim.tsx:58. - Description: the new spec covers eight stories in four modes, failing without the change and passing with it. Verified: 8 of 8 fail on
mainwith only the spec added, and 8 of 8 pass on this head. - Description: the TreeList test now expects the chevron to land at once and passes 18 of 18. Verified: 18 of 18 pass in Chromium on this head.
- Description: tests that pin duration strings and one snapshot are updated, and the Stepper timing tests pass. Verified: the DateInput, ProgressBar, Toast, theme snapshot, Stepper, motion and tool-call unit tests pass on this head (48 files, 1565 tests); the snapshot changes only the chevron's class.
- Description: type check, lint, formatting, the core and Storybook builds and the changeset check are clean. Verified on this head, and CI's typecheck, lint, core build and Storybook build pass here too.
- Description: under
'always'the bottom sheet opens and closes in one frame, against 18 to 19 frames without this change; the other cases settle in one frame or matchmain. Consistent with the code (BottomSheet/BottomSheetPanel.tsx:391,:749); the frame counts come from the author's test-only build and were not re-measured. - Description: the changeset says the theme case changes nothing today. Verified.
- Description: 38 files, about +327/−60, most sites changing one duration line. Verified: 38 files, 327 added, 60 deleted.
- Description: the listed overlapping pull requests change different lines. Verified: in every file each one shares with this pull request, no hunk overlaps.
.changeset/reduced-motion-transform-transitions.md,packages/core/src/motion/reducedMotion.stylex.ts,packages/core/src/motion/__tests__/reducedMotionTransform.a11y.chromium.spec.ts,packages/core/src/Stepper/Step.tsx,packages/core/src/TreeList/__tests__/TreeListExpand.interaction.browser.spec.ts: clear.BottomSheet/BottomSheetPanel.tsx,BottomSheet/BottomSheet.tsx,Dialog/Dialog.tsx,Drawer/Drawer.tsx,MobileNav/MobileNav.tsx,DateInput/TouchDateField.tsx,Toast/Toast.tsx,Overlay/OverlayScrim.tsx: clear; each entrance, slide or fade takes the factor, withsettlewhere a script waits, as the survey says.CodeBlock/CodeBlock.tsx,Collapsible/Collapsible.tsx,MultiSelector/MultiSelector.tsx,Selector/Selector.tsx,TabList/TabMenu.tsx,TreeList/TreeListItem.tsx,Table/plugins/groupedRows/useTableGroupedRows.tsx,Table/plugins/rowExpansion/useTableRowExpansion.tsx,Table/plugins/tree/useTableTreeData.tsx,TopNav/TopNavMenu.tsx,TopNav/TopNavMegaMenu.tsx,Resizable/ResizeHandle.tsx: clear.Banner/Banner.tsx,Chat/ChatDictationButton.tsx,Chat/ChatLayoutScrollButton.tsx,Chat/ChatToolCalls.tsx,ComplexSelector/ComplexSelector.tsx,ProgressBar/ProgressBar.tsx,SideNav/SideNavCollapseButton.tsx,SideNav/SideNavItem.tsx,Switch/Switch.tsx: clear.DateInput/DateInputTouch.test.tsx,ProgressBar/ProgressBar.test.tsx,Toast/ToastViewport.test.tsx,theme/__snapshots__/themeIndicatorSeams.test.tsx.snap: clear.
|
/approve-spec 83ba2ea |
PR Analysis Report🔎 Preview ·
|
| Component | Size | LoC | Visual · A11y · RTL |
|---|---|---|---|
| ProgressBar · Storybook | 12.5 kB (+1 B) · 7.0 kB CSS (+28 B) | 582 (0) | — · ✗ · — |
| ChatComposer | 94.5 kB (+1 B) · 13.7 kB CSS (0) | — | — · ✗ · — |
| ChatComposerInput | 91.6 kB (−1 B) · 12.7 kB CSS (0) | — | — · ✗ · — |
214 more components
| Component | Size | LoC | Visual · A11y · RTL |
|---|---|---|---|
| Step | 32.6 kB (+204 B) · 5.7 kB CSS (0) | — | — · — · — |
| Markdown | 211.0 kB (+41 B) · 23.8 kB CSS (+72 B) | — | — · — · — |
| PowerSearch | 323.9 kB (+24 B) · 27.7 kB CSS (+88 B) | — | — · — · — |
| Overlay · Storybook | 24.1 kB (+71 B) · 4.2 kB CSS (+35 B) | 477 (+2) | — · ✓ · — |
| SideNav | 118.7 kB (+26 B) · 12.8 kB CSS (+64 B) | — | — · ✓ · — |
| DateInput · Storybook | 213.5 kB (+30 B) · 19.2 kB CSS (+56 B) | 6,383 (+1) | — · ✓ · — |
| MultiSelector · Storybook | 108.7 kB (+26 B) · 19.2 kB CSS (+55 B) | 2,844 (+4) | — · ✓ · — |
| Selector | 121.0 kB (+31 B) · 20.0 kB CSS (+50 B) | — | — · ✓ · — |
| Pagination | 154.3 kB (+20 B) · 20.3 kB CSS (+56 B) | — | — · — · — |
| Table | 126.5 kB (+31 B) · 21.5 kB CSS (+40 B) | — | — · ✓ · — |
| MoreMenu | 137.9 kB (+31 B) · 20.1 kB CSS (+39 B) | — | — · — · — |
| ResizeHandle | 22.5 kB (+15 B) · 4.4 kB CSS (+53 B) | — | — · — · — |
| TreeList · Storybook | 47.9 kB (+16 B) · 6.0 kB CSS (+50 B) | 1,249 (+4) | — · ✓ · — |
| DropdownMenu | 137.7 kB (+25 B) · 20.1 kB CSS (+39 B) | — | — · — · — |
| Popover | 109.2 kB (+18 B) · 15.8 kB CSS (+46 B) | — | — · — · — |
| AppShell | 94.4 kB (+17 B) · 15.1 kB CSS (+45 B) | — | — · — · — |
| DateTimeInput | 237.5 kB (+25 B) · 20.9 kB CSS (+37 B) | — | — · — · — |
| lab/Comments | 391.2 kB (+59 B) · 2.5 kB CSS (0) | — | — · — · — |
| TopNav | 74.0 kB (+13 B) · 12.3 kB CSS (+45 B) | — | — · ✓ · — |
| MobileNav | 82.7 kB (+11 B) · 11.9 kB CSS (+44 B) | — | — · ✓ · — |
| MobileNavToggle | 72.2 kB (+11 B) · 11.9 kB CSS (+44 B) | — | — · — · — |
| TimeInput | 185.0 kB (+6 B) · 18.0 kB CSS (+49 B) | — | — · — · — |
| Collapsible | 30.1 kB (+7 B) · 4.6 kB CSS (+43 B) | — | — · ✓ · — |
| TabMenu | 88.3 kB (+17 B) · 12.6 kB CSS (+31 B) | — | — · — · — |
| BottomSheet | 77.6 kB (+6 B) · 7.9 kB CSS (+41 B) | — | — · ✓ · — |
| Tokenizer | 117.4 kB (0) · 22.2 kB CSS (+47 B) | — | — · — · — |
| TopNavMenu | 91.2 kB (+17 B) · 12.7 kB CSS (+30 B) | — | — · ✓ · — |
| lab/Schedule | 122.1 kB (+46 B) · 3.9 kB CSS (0) | — | — · — · — |
| Drawer | 60.8 kB (+16 B) · 9.1 kB CSS (+29 B) | — | — · ✓ · — |
| CommandPalette | 87.1 kB (+26 B) · 14.0 kB CSS (+17 B) | — | — · — · — |
| ComplexSelector · Storybook | 87.4 kB (+10 B) · 13.5 kB CSS (+33 B) | 755 (+1) | — · ✓ · — |
| Toast · Storybook | 110.1 kB (+1 B) · 11.6 kB CSS (+42 B) | 1,864 (+1) | — · ✓ · — |
| SideNavCollapseButton | 70.9 kB (+11 B) · 11.4 kB CSS (+31 B) | — | — · — · — |
| Banner · Storybook | 72.1 kB (+11 B) · 11.8 kB CSS (+30 B) | 527 (+1) | — · ✓ · — |
| TableCell | 111.8 kB (+1 B) · 20.5 kB CSS (+40 B) | — | — · — · — |
| lab/CommentComposer | 191.5 kB (+40 B) · 1.9 kB CSS (0) | — | — · — · — |
| SideNavItem | 86.2 kB (+4 B) · 12.6 kB CSS (+35 B) | — | — · — · — |
| TopNavMegaMenu | 85.3 kB (+8 B) · 13.3 kB CSS (+31 B) | — | — · — · — |
| lab/ChatReactionBar | 134.0 kB (+38 B) · 1.1 kB CSS (0) | — | — · — · — |
| CodeBlock · Storybook | 86.3 kB (+7 B) · 13.0 kB CSS (+29 B) | 2,281 (+4) | — · ✓ · — |
| lab/CommentThread | 384.2 kB (+34 B) · 2.4 kB CSS (0) | — | — · — · — |
| TableHeaderCell | 111.7 kB (−6 B) · 20.3 kB CSS (+39 B) | — | — · — · — |
| ContextMenu | 110.7 kB (−1 B) · 19.9 kB CSS (+33 B) | — | — · — · — |
| Switch · Storybook | 114.0 kB (+5 B) · 10.9 kB CSS (+27 B) | 1,818 (+3) | — · ✓ · — |
| lab/ChatEmojiPicker | 132.7 kB (+29 B) · 773 B CSS (0) | — | — · — · — |
| DateRangeInput | 110.4 kB (+26 B) · 14.4 kB CSS (0) | — | — · — · — |
| charts/Chart | 256.8 kB (+24 B) · 516 B CSS (0) | — | — · — · — |
| Dialog | 29.3 kB (+2 B) · 7.4 kB CSS (+21 B) | — | — · ✓ · — |
| ChatLayoutScrollButton | 70.6 kB (+4 B) · 11.5 kB CSS (+17 B) | — | — · — · — |
| ChatToolCalls | 33.8 kB (−2 B) · 9.2 kB CSS (+23 B) | — | — · ✓ · — |
| charts/ChartTooltip | 233.2 kB (+20 B) · 451 B CSS (0) | — | — · — · — |
| AlertDialog | 137.2 kB (+4 B) · 16.4 kB CSS (+15 B) | — | — · — · — |
| ChatLayout | 93.8 kB (−3 B) · 11.8 kB CSS (+19 B) | — | — · ✓ · — |
| lab/VideoPlayer | 237.7 kB (+16 B) · 2.1 kB CSS (0) | — | — · — · — |
| lab/MediaTime | 229.3 kB (+13 B) · 1.5 kB CSS (0) | — | — · — · — |
| lab/MediaCaptionsButton | 229.3 kB (+12 B) · 1.5 kB CSS (0) | — | — · — · — |
| lab/MediaFullscreenButton | 229.3 kB (+12 B) · 1.5 kB CSS (0) | — | — · — · — |
| lab/MediaPlayButton | 229.3 kB (+12 B) · 1.5 kB CSS (0) | — | — · — · — |
| lab/MediaTimeSlider | 229.3 kB (+12 B) · 1.5 kB CSS (0) | — | — · — · — |
| Carousel | 81.3 kB (+11 B) · 12.3 kB CSS (0) | — | — · — · — |
| lab/MediaPlaybackRate | 229.3 kB (+11 B) · 1.5 kB CSS (0) | — | — · — · — |
| lab/MediaSeekButton | 229.3 kB (+11 B) · 1.5 kB CSS (0) | — | — · — · — |
| lab/MediaVolume | 229.3 kB (+11 B) · 1.5 kB CSS (0) | — | — · — · — |
| ChatDictationButton | 70.6 kB (−2 B) · 11.3 kB CSS (+12 B) | — | — · ✓ · — |
| richtext/RichTextEditorToolbar | 297.5 kB (+10 B) · 454 B CSS (0) | — | — · — · — |
| lab/TransferListSelector | 156.2 kB (+8 B) · 1.6 kB CSS (0) | — | — · — · — |
| lab/Tour | 111.1 kB (+7 B) · 1.0 kB CSS (0) | — | — · — · — |
| DropdownMenuItem | 29.5 kB (+6 B) · 7.2 kB CSS (0) | — | — · — · — |
| lab/DiffViewer | 99.3 kB (+5 B) · 2.3 kB CSS (0) | — | — · — · — |
| SelectorOption | 25.4 kB (+4 B) · 6.8 kB CSS (0) | — | — · — · — |
| TextInput | 103.9 kB (+4 B) · 13.0 kB CSS (0) | — | — · — · — |
| BaseTypeahead | 87.5 kB (+3 B) · 12.3 kB CSS (0) | — | — · — · — |
| Calendar | 81.3 kB (+3 B) · 11.9 kB CSS (0) | — | — · — · — |
| SideNavHeading | 92.1 kB (+3 B) · 12.7 kB CSS (0) | — | — · — · — |
| ToggleButton | 70.7 kB (+3 B) · 11.3 kB CSS (0) | — | — · — · — |
| lab/EmojiPicker | 123.8 kB (+3 B) · 751 B CSS (0) | — | — · — · — |
| lab/SelectableCardGroup | 74.0 kB (+3 B) · 162 B CSS (0) | — | — · — · — |
| ChatSendButton | 70.5 kB (+2 B) · 11.3 kB CSS (0) | — | — · — · — |
| IconButton | 70.0 kB (+2 B) · 11.3 kB CSS (0) | — | — · — · — |
| TableSelectionToolbar | 80.6 kB (+2 B) · 14.7 kB CSS (0) | — | — · — · — |
| TextArea | 97.4 kB (+2 B) · 10.3 kB CSS (0) | — | — · — · — |
| lab/CodeEditor | 14.8 kB (+2 B) · 743 B CSS (0) | — | — · — · — |
| charts/ChartLegend | 43.6 kB (+1 B) · 224 B CSS (0) | — | — · — · — |
| Button | 70.0 kB (+1 B) · 11.3 kB CSS (0) | — | — · — · — |
| Code | 3.9 kB (+1 B) · 3.5 kB CSS (0) | — | — · — · — |
| DialogHeader | 73.3 kB (+1 B) · 13.0 kB CSS (0) | — | — · — · — |
| Skeleton | 4.1 kB (+1 B) · 3.8 kB CSS (0) | — | — · — · — |
| Stepper | 71.8 kB (+1 B) · 11.4 kB CSS (0) | — | — · ✓ · — |
| Text | 12.1 kB (+1 B) · 6.1 kB CSS (0) | — | — · — · — |
| charts/ChartAxis | 7.1 kB (0) · 112 B CSS (0) | — | — · — · — |
| AspectRatio | 4.1 kB (0) · 3.6 kB CSS (0) | — | — · — · — |
| Avatar | 48.6 kB (0) · 6.3 kB CSS (0) | — | — · — · — |
| AvatarGroup | 51.4 kB (0) · 6.4 kB CSS (0) | — | — · — · — |
| AvatarGroupOverflow | 54.6 kB (0) · 6.4 kB CSS (0) | — | — · — · — |
| AvatarStatusDot | 7.8 kB (0) · 3.6 kB CSS (0) | — | — · — · — |
| Badge | 7.4 kB (0) · 4.1 kB CSS (0) | — | — · — · — |
| Blockquote | 3.9 kB (0) · 3.5 kB CSS (0) | — | — · — · — |
| BottomSheetSwitcher | 19.6 kB (0) · 3.4 kB CSS (0) | — | — · — · — |
| BreadcrumbItem | 107.1 kB (0) · 14.3 kB CSS (0) | — | — · — · — |
| Breadcrumbs | 16.7 kB (0) · 3.4 kB CSS (0) | — | — · — · — |
| ButtonGroup | 45.2 kB (0) · 3.7 kB CSS (0) | — | — · — · — |
| Card | 10.5 kB (0) · 7.0 kB CSS (0) | — | — · — · — |
| Center | 4.5 kB (0) · 4.6 kB CSS (0) | — | — · — · — |
| ChatComposerDrawer | 18.6 kB (0) · 4.8 kB CSS (0) | — | — · ✓ · — |
| ChatComposerTokenElement | 91.6 kB (0) · 12.7 kB CSS (0) | — | — · ✓ · — |
| ChatMessage | 17.4 kB (0) · 3.7 kB CSS (0) | — | — · ✓ · — |
| ChatMessageBubble | 7.7 kB (0) · 3.8 kB CSS (0) | — | — · ✓ · — |
| ChatMessageList | 29.2 kB (0) · 7.8 kB CSS (0) | — | — · ✓ · — |
| ChatMessageMetadata | 21.0 kB (0) · 4.2 kB CSS (0) | — | — · ✓ · — |
| ChatSystemMessage | 7.2 kB (0) · 3.8 kB CSS (0) | — | — · ✓ · — |
| ChatTokenizedText | 7.8 kB (0) · 4.1 kB CSS (0) | — | — · ✓ · — |
| CheckboxInput | 73.7 kB (0) · 11.0 kB CSS (0) | — | — · — · — |
| CheckboxList | 78.6 kB (0) · 8.5 kB CSS (0) | — | — · — · — |
| CheckboxListItem | 85.4 kB (0) · 13.0 kB CSS (0) | — | — · — · — |
| Citation | 21.3 kB (0) · 4.5 kB CSS (0) | — | — · — · — |
| CollapsibleGroup | 7.1 kB (0) · 3.3 kB CSS (0) | — | — · ✓ · — |
| CommandPaletteEmpty | 6.6 kB (0) · 3.5 kB CSS (0) | — | — · — · — |
| CommandPaletteGroup | 3.8 kB (0) · 3.5 kB CSS (0) | — | — · — · — |
| CommandPaletteInput | 34.8 kB (0) · 8.3 kB CSS (0) | — | — · — · — |
| CommandPaletteItem | 13.8 kB (0) · 3.6 kB CSS (0) | — | — · — · — |
| CommandPaletteList | 16.6 kB (0) · 3.4 kB CSS (0) | — | — · — · — |
| DropdownMenuGroup | 6.6 kB (0) · 3.4 kB CSS (0) | — | — · — · — |
| DropdownMenuRadioGroup | 6.7 kB (0) · 3.4 kB CSS (0) | — | — · — · — |
| DropdownMenuRadioItem | 30.3 kB (0) · 7.7 kB CSS (0) | — | — · — · — |
| DropdownMenuSubMenu | 83.2 kB (0) · 11.5 kB CSS (0) | — | — · — · — |
| Field | 63.6 kB (0) · 8.0 kB CSS (0) | — | — · — · — |
| FieldLabel | 59.0 kB (0) · 6.5 kB CSS (0) | — | — · — · — |
| FileInput | 80.1 kB (0) · 12.9 kB CSS (0) | — | — · — · — |
| FormLayout | 7.0 kB (0) · 3.5 kB CSS (0) | — | — · — · — |
| GridSpan | 3.8 kB (0) · 3.4 kB CSS (0) | — | — · — · — |
| Heading | 12.9 kB (0) · 6.1 kB CSS (0) | — | — · — · — |
| HoverCard | 31.4 kB (0) · 4.8 kB CSS (0) | — | — · — · — |
| InfoTip | 53.7 kB (0) · 6.1 kB CSS (0) | — | — · — · — |
| InputGroup | 65.7 kB (0) · 9.2 kB CSS (0) | — | — · — · — |
| InputGroupText | 7.5 kB (0) · 4.1 kB CSS (0) | — | — · — · — |
| Item | 21.6 kB (0) · 6.3 kB CSS (0) | — | — · — · — |
| Kbd | 17.4 kB (0) · 3.6 kB CSS (0) | — | — · — · — |
| LayoutPanel | 22.4 kB (0) · 5.1 kB CSS (0) | — | — · — · — |
| Lightbox | 154.2 kB (0) · 12.4 kB CSS (0) | — | — · — · — |
| Link | 60.0 kB (0) · 7.8 kB CSS (0) | — | — · — · — |
| ListItem | 84.5 kB (0) · 13.0 kB CSS (0) | — | — · — · — |
| MetadataList | 17.5 kB (0) · 3.8 kB CSS (0) | — | — · — · — |
| MetadataListItem | 7.2 kB (0) · 3.6 kB CSS (0) | — | — · — · — |
| NavHeadingMenu | 19.5 kB (0) · 3.5 kB CSS (0) | — | — · — · — |
| NavIcon | 3.8 kB (0) · 3.4 kB CSS (0) | — | — · — · — |
| Outline | 27.2 kB (0) · 4.3 kB CSS (0) | — | — · — · — |
| OverflowList | 12.8 kB (0) · 3.7 kB CSS (0) | — | — · — · — |
| RadioList | 65.1 kB (0) · 8.0 kB CSS (0) | — | — · — · — |
| RadioListItem | 81.4 kB (0) · 11.6 kB CSS (0) | — | — · — · — |
| SegmentedControl | 105.5 kB (0) · 7.6 kB CSS (0) | — | — · — · — |
| SegmentedControlItem | 19.8 kB (0) · 4.4 kB CSS (0) | — | — · — · — |
| SelectableCard | 19.7 kB (0) · 8.1 kB CSS (0) | — | — · — · — |
| SideNavSection | 7.2 kB (0) · 3.7 kB CSS (0) | — | — · — · — |
| Slider | 119.3 kB (0) · 9.6 kB CSS (0) | — | — · — · — |
| Spinner | 25.8 kB (0) · 7.0 kB CSS (0) | — | — · — · — |
| StatusDot | 36.4 kB (0) · 6.0 kB CSS (0) | — | — · — · — |
| Tab | 15.3 kB (0) · 4.3 kB CSS (0) | — | — · — · — |
| TableFooter | 3.6 kB (0) · 3.3 kB CSS (0) | — | — · — · — |
| TableHeader | 3.6 kB (0) · 3.3 kB CSS (0) | — | — · — · — |
| TableRow | 7.3 kB (0) · 4.1 kB CSS (0) | — | — · — · — |
| TabList | 49.1 kB (0) · 6.8 kB CSS (0) | — | — · ✓ · — |
| Thumbnail | 74.6 kB (0) · 12.8 kB CSS (0) | — | — · — · — |
| Timer | 14.6 kB (0) · 6.7 kB CSS (0) | — | — · — · — |
| Timestamp | 28.5 kB (0) · 11.5 kB CSS (0) | — | — · — · — |
| Token | 31.4 kB (0) · 5.0 kB CSS (0) | — | — · — · — |
| Toolbar | 48.7 kB (0) · 8.6 kB CSS (0) | — | — · — · — |
| Tooltip | 34.6 kB (0) · 5.1 kB CSS (0) | — | — · — · — |
| TopNavHeading | 91.8 kB (0) · 12.6 kB CSS (0) | — | — · — · — |
| TopNavMegaMenuFeaturedCard | 8.6 kB (0) · 3.6 kB CSS (0) | — | — · — · — |
| TopNavMegaMenuItem | 15.5 kB (0) · 4.2 kB CSS (0) | — | — · — · — |
| Typeahead | 99.2 kB (0) · 14.6 kB CSS (0) | — | — · — · — |
| TypeaheadItem | 6.7 kB (0) · 3.6 kB CSS (0) | — | — · — · — |
| lab/ChartDotGL | 7.6 kB (0) · 20 B CSS (0) | — | — · — · — |
| lab/ChartDotGLInteractive | 8.6 kB (0) · 20 B CSS (0) | — | — · — · — |
| lab/ChartHeatmapGL | 8.8 kB (0) · 20 B CSS (0) | — | — · — · — |
| lab/ChartStreamGL | 7.7 kB (0) · 20 B CSS (0) | — | — · — · — |
| lab/ChatReasoning | 7.4 kB (0) · 967 B CSS (0) | — | — · — · — |
| lab/ChatUnreadDivider | 3.9 kB (0) · 348 B CSS (0) | — | — · — · — |
| lab/ChatVirtualizer | 58.2 kB (0) · 223 B CSS (0) | — | — · — · — |
| lab/CircleCheckIndicator | 4.7 kB (0) · 1.1 kB CSS (0) | — | — · — · — |
| lab/CircularProgress | 9.1 kB (0) · 859 B CSS (0) | — | — · — · — |
| lab/CommentPin | 63.5 kB (0) · 1.2 kB CSS (0) | — | — · — · — |
| lab/DialogHeroHeader | 94.8 kB (0) · 372 B CSS (0) | — | — · — · — |
| lab/LineClamp | 14.7 kB (0) · 168 B CSS (0) | — | — · — · — |
| lab/ListInput | 100.7 kB (0) · 1.3 kB CSS (0) | — | — · — · — |
| lab/LogStream | 8.4 kB (0) · 1.6 kB CSS (0) | — | — · — · — |
| lab/MediaPlayer | 31.4 kB (0) · 165 B CSS (0) | — | — · — · — |
| lab/MediaPlayerElement | 7.0 kB (0) · 177 B CSS (0) | — | — · — · — |
| lab/NavigationScreen | 87.0 kB (0) · 1.5 kB CSS (0) | — | — · — · — |
| lab/NavigationStack | 87.0 kB (0) · 1.5 kB CSS (0) | — | — · — · — |
| lab/PageControl | 79.4 kB (0) · 716 B CSS (0) | — | — · — · — |
| lab/Stat | 4.4 kB (0) · 646 B CSS (0) | — | — · — · — |
| lab/SVGIcon | 8.1 kB (0) · 765 B CSS (0) | — | — · — · — |
| lab/TabBar | 84.9 kB (0) · 1.8 kB CSS (0) | — | — · — · — |
| lab/TabBarItem | 3.9 kB (0) · 1.8 kB CSS (0) | — | — · — · — |
| lab/TabBarMoreList | 108.0 kB (0) · 1.8 kB CSS (0) | — | — · — · — |
| lab/ThreeDScatterGL | 7.9 kB (0) · 20 B CSS (0) | — | — · — · — |
| lab/TransferList | 143.6 kB (0) · 1.4 kB CSS (0) | — | — · — · — |
| lab/WeightedSVGIcon | 5.2 kB (0) · 1.1 kB CSS (0) | — | — · — · — |
| richtext/RichTextEditor | 313.6 kB (0) · 2.7 kB CSS (0) | — | — · — · — |
| richtext/RichTextView | 290.3 kB (0) · 2.4 kB CSS (0) | — | — · — · — |
| DropdownMenuCheckboxItem | 30.3 kB (−1 B) · 7.7 kB CSS (0) | — | — · — · — |
| Grid | 4.7 kB (−1 B) · 3.8 kB CSS (0) | — | — · — · — |
| TableBody | 6.8 kB (−1 B) · 3.3 kB CSS (0) | — | — · — · — |
| ToggleButtonGroup | 42.5 kB (−1 B) · 3.7 kB CSS (0) | — | — · — · — |
| TopNavItem | 14.9 kB (−1 B) · 4.0 kB CSS (0) | — | — · — · — |
| lab/AudioPlayer | 239.7 kB (−1 B) · 1.8 kB CSS (0) | — | — · — · — |
| ClickableCard | 19.5 kB (−2 B) · 7.9 kB CSS (0) | — | — · — · — |
| CommandPaletteFooter | 17.7 kB (−2 B) · 3.7 kB CSS (0) | — | — · — · — |
| DrawerHeader | 73.5 kB (−2 B) · 14.4 kB CSS (0) | — | — · ✓ · — |
| NavHeadingMenuItem | 20.0 kB (−2 B) · 7.1 kB CSS (0) | — | — · — · — |
| lab/ChatTypingIndicator | 26.6 kB (−4 B) · 612 B CSS (0) | — | — · — · — |
| ContextMenuItem | 40.4 kB (−7 B) · 7.4 kB CSS (0) | — | — · — · — |
| NumberInput | 108.9 kB (−8 B) · 13.2 kB CSS (0) | — | — · — · — |
Package size: @astryxdesign/core 8.07 MB packed (+3.2 kB); no new dependencies.
Wide change (23 components): add ci:run-visual for Visual, ci:run-rtl for RTL.
Accessibility: 4 violation(s)
Accessibility Audit
Status: 4 accessibility violation(s) found — 4 serious.
ChatComposer - 1 issue(s)
- 🟠 serious: Ensure the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds
- Rule:
color-contrast· Affects 1/21 stories · Learn more - WCAG: 1.4.3 (Level AA)
- Rule:
ChatComposerInput - 1 issue(s)
- 🟠 serious: Ensure the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds
- Rule:
color-contrast· Affects 1/18 stories · Learn more - WCAG: 1.4.3 (Level AA)
- Rule:
ProgressBar - 1 issue(s)
- 🟠 serious: Ensure the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds
- Rule:
color-contrast· Affects 2/18 stories · Learn more - WCAG: 1.4.3 (Level AA)
- Rule:
Progressbar - 1 issue(s)
- 🟠 serious: Ensure the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds
- Rule:
color-contrast· Affects 1/1 stories · Learn more - WCAG: 1.4.3 (Level AA)
- Rule:
Generated by PR Enrichment workflow | View full report
|
/approve-spec 6a564c7 |
There was a problem hiding this comment.
Approved pending CI: the WebKit interaction leg 2/2 has to pass on a re-run before merge.
CI's one failure at this head is the Switch touch proof P14 · a second tap mid-travel … tripping its frame-starvation guard (3 frame stalls where 2 pass), as it did at the previous head with the same patch; under a finger the thumb has no CSS transition (Switch/Switch.tsx:584-587), so the duration changed at Switch/Switch.tsx:592 never runs there, and the same case passes in Chromium. The code has not changed since the last review, so its findings stand: every change follows the reduced-motion and theme-motion records, and no defect remains. Keeping the setting's touch-screen cross-fade for the Dialog and the bottom sheet under a theme that reduces motion for everyone stays the follow-up the description names.
Claims and files checked
Review mode: same-head; reason: none
- Since the last review: the pull request was marked ready for review; no commit, comment or description edit followed, and CI ran on this head.
- Changeset: under the Reduce Motion setting, the listed disclosure chevrons now land at once. Verified: each of the 13 chevron styles has a literal
0ssetting key, none of which the base has; 40 ms after a click under Reduce Motion the Collapsible chevrons are mid-turn on the base and at rest with this change. - Changeset: the resize handle's pill now changes at once too. Verified:
Resizable/ResizeHandle.tsx:206-210gives0sto opacity, background colour and transform. - Changeset: transform transitions also read the signal a theme with
reducedMotion: 'always'writes, which no theme can set yet, so that part changes nothing today. Verified: the factor at every changed site;theme/motionKnobs.ts:82always resolves'system'. - Changeset: a patch fix for the core package. Verified: it bumps the core package as a patch; typecheck, lint, the core and Storybook builds and the release checks passed on this head.
- Description: under reduced motion a transform now lands at once, from the setting or a theme. Verified: the setting keys, the factor, and Stepper's script read (
Stepper/Step.tsx:1120,:1128). - Description: before, 13 chevrons and the pill still turned under the setting. Verified: none of the 14 base styles has a setting key, and the base Collapsible chevrons compute 0.125 s under Reduce Motion.
- Description: sites that already followed the setting ignored a theme that reduces motion for everyone. Verified: the base has no factor, and the base Stepper keys only the setting; on a marked page the base Dialog still travels and scales for 0.4 s.
- Description: colour and opacity changes keep their durations except where the survey says otherwise. Verified: each multi-property site that changes under the mark (the pill, the scrim, Toast, the two chat buttons, the bottom sheet, the Dialog) has its own survey row.
- Description: where a site's setting rule already zeroed every property, the theme case matches it. Verified: Toast, the Overlay scrim and the chat scroll and dictation buttons all land within one frame under both.
- Description: one case differs on purpose, the Dialog's entrance. Verified:
Dialog/Dialog.tsx:264-267; the bottom sheet's row names its touch fade as the same follow-up. - Description: builds on the script-readers pull request, which has merged into
main, and this pull request targetsmain. Verified: that pull request is in this pull request's base, and this pull request targetsmain. - Description: one helper with two StyleX consts in the existing CSS-side module. Verified:
motion/reducedMotion.stylex.ts:54-57. - Description: no new variable; Theme already writes the property where it writes the mark, and a nested theme never writes it back. Verified:
theme/Theme.tsx:117-118,:345-349,:456,:507, unchanged by this pull request. - Description: each site builds on its own token, adds the literal setting key where it had none, and spells neither the property nor the mark. Verified: only the helper and the tests spell them.
- Description: Stepper reads the shared hook and gives every connector
0s. Verified:Stepper/Step.tsx:1120,:1128; the hook reads the setting or the theme (privateAttributes/reducedMotion.stylex.ts:110-113). - Description: the survey covers every transform transition in Core. Verified: every non-test Core transition that names
transformis in this pull request, apart from the press scale and the mega-menu panel entrance, which the survey leaves out. - Description: slides a script waits on (Drawer, MobileNav, the bottom sheet stack, the date field title) give 0.01 s under the mark. Verified: each adds
settle. - Description: the bottom sheet's entrance and exit give
0sunder the mark, its own wait resolves a zero duration, and on a touch screen the setting fades it in over 200 ms. Verified:BottomSheet/BottomSheetPanel.tsx:391,:394,:749. - Description: the scrim's hover clip delay takes the factor too. Verified:
Overlay/OverlayScrim.tsx:58. - Description: the press scale and the mega-menu panel entrance are left for a follow-up. Verified: neither changes.
- Description: the new spec covers eight stories in four modes, failing without the change and passing with it. Verified on this same patch: 8 of 8 fail on
mainwith only the spec added, and 8 of 8 pass with the change. - Description: the TreeList test now expects the chevron to land at once and passes 18 of 18. Verified on this same patch: 18 of 18 pass in Chromium.
- Description: tests that pin duration strings and one snapshot are updated, and the Stepper timing tests pass. Verified on this same patch: the DateInput, ProgressBar, Toast, theme snapshot, Stepper, motion and tool-call unit tests pass (48 files, 1565 tests); the snapshot changes only the chevron's class.
- Description: type check, lint, formatting, the core and Storybook builds and the changeset check are clean. Verified on this same patch; on this head CI's typecheck, lint, builds, unit tests and Chromium interaction legs passed.
- Description: under
'always'the bottom sheet opens and closes in one frame, against 18 to 19 frames without this change; the other cases settle in one frame or matchmain. Consistent with the code (BottomSheet/BottomSheetPanel.tsx:391,:749); the frame counts come from the author's test-only build and were not re-measured. - Description: the changeset says the theme case changes nothing today. Verified.
- Description: 38 files, about +327/−60, most sites changing one duration line. Verified: 38 files, 327 added, 60 deleted.
- Description: the listed overlapping pull requests change different lines. Verified again on this head: in every file each one shares with this pull request, no hunk overlaps.
.changeset/reduced-motion-transform-transitions.md,packages/core/src/motion/reducedMotion.stylex.ts,packages/core/src/motion/__tests__/reducedMotionTransform.a11y.chromium.spec.ts,packages/core/src/Stepper/Step.tsx,packages/core/src/TreeList/__tests__/TreeListExpand.interaction.browser.spec.ts: clear.BottomSheet/BottomSheetPanel.tsx,BottomSheet/BottomSheet.tsx,Dialog/Dialog.tsx,Drawer/Drawer.tsx,MobileNav/MobileNav.tsx,DateInput/TouchDateField.tsx,Toast/Toast.tsx,Overlay/OverlayScrim.tsx: clear; each entrance, slide or fade takes the factor, withsettlewhere a script waits, as the survey says.CodeBlock/CodeBlock.tsx,Collapsible/Collapsible.tsx,MultiSelector/MultiSelector.tsx,Selector/Selector.tsx,TabList/TabMenu.tsx,TreeList/TreeListItem.tsx,Table/plugins/groupedRows/useTableGroupedRows.tsx,Table/plugins/rowExpansion/useTableRowExpansion.tsx,Table/plugins/tree/useTableTreeData.tsx,TopNav/TopNavMenu.tsx,TopNav/TopNavMegaMenu.tsx,Resizable/ResizeHandle.tsx: clear.Banner/Banner.tsx,Chat/ChatDictationButton.tsx,Chat/ChatLayoutScrollButton.tsx,Chat/ChatToolCalls.tsx,ComplexSelector/ComplexSelector.tsx,ProgressBar/ProgressBar.tsx,SideNav/SideNavCollapseButton.tsx,SideNav/SideNavItem.tsx,Switch/Switch.tsx: clear.DateInput/DateInputTouch.test.tsx,ProgressBar/ProgressBar.test.tsx,Toast/ToastViewport.test.tsx,theme/__snapshots__/themeIndicatorSeams.test.tsx.snap: clear.
|
/approve-spec 895f97d |
There was a problem hiding this comment.
Approved: CI passed on this head, and the code is unchanged since the last review.
Every change follows the reduced-motion and theme-motion records, and no defect remains. Keeping the setting's touch-screen cross-fade for the Dialog and the bottom sheet under a theme that reduces motion for everyone stays the follow-up the description names.
Claims and files checked
Review mode: same-head; reason: none
- Since the last review: the pull request left draft; the code, title and description are unchanged, and no review rule changed.
- Changeset: under the Reduce Motion setting, the listed disclosure chevrons now land at once. Verified: each of the 13 chevron styles has a literal
0ssetting key, none of which the base has; 40 ms after a click under Reduce Motion the Collapsible chevrons are mid-turn on the base and at rest with this change. - Changeset: the resize handle's pill now changes at once too. Verified:
Resizable/ResizeHandle.tsx:207-211gives0sto opacity, background colour and transform. - Changeset: transform transitions also read the signal a theme with
reducedMotion: 'always'writes, which no theme can set yet, so that part changes nothing today. Verified: the factor at every changed site;theme/motionKnobs.ts:82always resolves'system'. - Changeset: a patch fix for the core package. Verified: it bumps only the core package, as a patch.
- Description: under reduced motion a transform now lands at once, from the setting or a theme. Verified: the setting keys, the factor, and Stepper's script read (
Stepper/Step.tsx:1120,:1128). - Description: before, 13 chevrons and the pill still turned under the setting. Verified: none of the 14 base styles has a setting key, and the base Collapsible chevrons compute 0.125 s under Reduce Motion.
- Description: sites that already followed the setting ignored a theme that reduces motion for everyone. Verified: the base has no factor, and the base Stepper keys only the setting; on a marked page the base Dialog still travels and scales for 0.4 s.
- Description: colour and opacity changes keep their durations except where the survey says otherwise. Verified: each multi-property site that changes under the mark (the pill, the scrim, Toast, the two chat buttons, the bottom sheet, the Dialog) has its own survey row.
- Description: where a site's setting rule already zeroed every property, the theme case matches it. Verified: Toast, the Overlay scrim and the chat scroll and dictation buttons all land within one frame under both.
- Description: one case differs on purpose, the Dialog's entrance. Verified:
Dialog/Dialog.tsx:264-267; the bottom sheet's row names its touch fade as the same follow-up. - Description: builds on the script-readers pull request, which has merged into
main, and this pull request targetsmain. Verified. - Description: one helper with two StyleX consts in the existing CSS-side module. Verified:
motion/reducedMotion.stylex.ts:54-57. - Description: no new variable; Theme already writes the property where it writes the mark, and a nested theme never writes it back. Verified:
theme/Theme.tsx:118and:453-456, unchanged by this pull request. - Description: each site builds on its own token, adds the literal setting key where it had none, and spells neither the property nor the mark. Verified: only the helper and the tests spell them.
- Description: Stepper reads the shared hook and gives every connector
0s. Verified:Stepper/Step.tsx:1120,:1128; the hook reads the setting or the theme (privateAttributes/reducedMotion.stylex.ts:110-113). - Description: the survey covers every transform transition in Core. Verified again: every non-test Core transition that names
transformtakes the factor or is timed in script, apart from the press scale (Button, the Selector family, and Carousel's override of the Button list) and the mega-menu panel entrance, which the survey leaves out. - Description: slides a script waits on (Drawer, MobileNav, the bottom sheet stack, the date field title) give 0.01 s under the mark. Verified: each adds
settle. - Description: the bottom sheet's entrance and exit give
0sunder the mark, its own wait resolves a zero duration, and on a touch screen the setting fades it in over 200 ms. Verified:BottomSheet/BottomSheetPanel.tsx:391,:394,:749. - Description: the scrim's hover clip delay takes the factor too. Verified:
Overlay/OverlayScrim.tsx:58. - Description: the press scale and the mega-menu panel entrance are left for a follow-up. Verified: neither changes.
- Description: the new spec covers eight stories in four modes, failing without the change and passing with it. Verified: 8 of 8 fail on
mainwith only the spec added, and 8 of 8 pass with the change, in CI at this head too. - Description: the TreeList test now expects the chevron to land at once and passes 18 of 18. Verified: 18 of 18 pass in Chromium in CI at this head.
- Description: tests that pin duration strings and one snapshot are updated, and the Stepper timing tests pass. Verified: the unit tests pass in CI at this head (test-node and test-ui, every shard); the snapshot changes only the chevron's class.
- Description: type check, lint, formatting, the core and Storybook builds and the changeset check are clean. Verified: CI passed on this head (typecheck, lint, the core and Storybook builds).
- Description: under
'always'the bottom sheet opens and closes in one frame, against 18 to 19 frames without this change; the other cases settle in one frame or matchmain. Consistent with the code (BottomSheet/BottomSheetPanel.tsx:391,:749); the frame counts come from the author's test-only build and were not re-measured. - Description: the changeset says the theme case changes nothing today. Verified.
- Description: 38 files, about +327/−60, most sites changing one duration line. Verified: 38 files, 327 added, 60 deleted.
- Description: the listed overlapping pull requests change different lines. Verified on the unchanged patch; one of them has since merged into
main, and this head carries both changes. .changeset/reduced-motion-transform-transitions.md,packages/core/src/motion/reducedMotion.stylex.ts,packages/core/src/motion/__tests__/reducedMotionTransform.a11y.chromium.spec.ts,packages/core/src/Stepper/Step.tsx,packages/core/src/TreeList/__tests__/TreeListExpand.interaction.browser.spec.ts: clear.BottomSheet/BottomSheetPanel.tsx,BottomSheet/BottomSheet.tsx,Dialog/Dialog.tsx,Drawer/Drawer.tsx,MobileNav/MobileNav.tsx,DateInput/TouchDateField.tsx,Toast/Toast.tsx,Overlay/OverlayScrim.tsx: clear; each entrance, slide or fade takes the factor, withsettlewhere a script waits, as the survey says.CodeBlock/CodeBlock.tsx,Collapsible/Collapsible.tsx,MultiSelector/MultiSelector.tsx,Selector/Selector.tsx,TabList/TabMenu.tsx,TreeList/TreeListItem.tsx,Table/plugins/groupedRows/useTableGroupedRows.tsx,Table/plugins/rowExpansion/useTableRowExpansion.tsx,Table/plugins/tree/useTableTreeData.tsx,TopNav/TopNavMenu.tsx,TopNav/TopNavMegaMenu.tsx,Resizable/ResizeHandle.tsx: clear.Banner/Banner.tsx,Chat/ChatDictationButton.tsx,Chat/ChatLayoutScrollButton.tsx,Chat/ChatToolCalls.tsx,ComplexSelector/ComplexSelector.tsx,ProgressBar/ProgressBar.tsx,SideNav/SideNavCollapseButton.tsx,SideNav/SideNavItem.tsx,Switch/Switch.tsx: clear.DateInput/DateInputTouch.test.tsx,ProgressBar/ProgressBar.test.tsx,Toast/ToastViewport.test.tsx,theme/__snapshots__/themeIndicatorSeams.test.tsx.snap: clear.
|
/approve-spec 10d122e |
There was a problem hiding this comment.
Approved: CI passed on this head, and the code is unchanged since the last review.
Every change follows the reduced-motion and theme-motion records, and no defect remains. Keeping the setting's touch-screen cross-fade for the Dialog and the bottom sheet under a theme that reduces motion for everyone stays the follow-up the description names.
Claims and files checked
Review mode: same-head; reason: none
- Since the last review: the pull request left draft; its code, title and description are unchanged, and no review rule changed.
- Changeset: under the Reduce Motion setting, the listed disclosure chevrons now land at once. Verified: each of the 13 chevron styles has a literal
0ssetting key, none of which the base has; 40 ms after a click under Reduce Motion the Collapsible chevrons are mid-turn on the base and at rest with this change. - Changeset: the resize handle's pill now changes at once too. Verified:
Resizable/ResizeHandle.tsx:208-211gives0sto opacity, background colour and transform. - Changeset: transform transitions also read the signal a theme with
reducedMotion: 'always'writes, which no theme can set yet, so that part changes nothing today. Verified: the factor at every changed site;theme/motionKnobs.ts:82always resolves'system'. - Changeset: a patch fix for the core package. Verified: it bumps only the core package, as a patch.
- Description: under reduced motion a transform now lands at once, from the setting or a theme. Verified: the setting keys, the factor, and Stepper's script read (
Stepper/Step.tsx:1120,:1128). - Description: before, 13 chevrons and the pill still turned under the setting. Verified: none of the 14 base styles has a setting key, and the base Collapsible chevrons compute 0.125 s under Reduce Motion.
- Description: sites that already followed the setting ignored a theme that reduces motion for everyone. Verified: the base has no factor, and the base Stepper keys only the setting; on a marked page the base Dialog still travels and scales for 0.4 s.
- Description: colour and opacity changes keep their durations except where the survey says otherwise. Verified: each multi-property site that changes under the mark (the pill, the scrim, Toast, the two chat buttons, the bottom sheet, the Dialog) has its own survey row.
- Description: where a site's setting rule already zeroed every property, the theme case matches it. Verified: Toast, the Overlay scrim and the chat scroll and dictation buttons all land within one frame under both.
- Description: one case differs on purpose, the Dialog's entrance. Verified:
Dialog/Dialog.tsx:264-267; the bottom sheet's row names its touch fade as the same follow-up. - Description: builds on the script-readers pull request, which has merged into
main, and this pull request targetsmain. Verified. - Description: one helper with two StyleX consts in the existing CSS-side module. Verified:
motion/reducedMotion.stylex.ts:54-57. - Description: no new variable; Theme already writes the property where it writes the mark, and a nested theme never writes it back. Verified:
theme/Theme.tsx:118, unchanged by this pull request. - Description: each site builds on its own token, adds the literal setting key where it had none, and spells neither the property nor the mark. Verified: only the helper and the tests spell them.
- Description: Stepper reads the shared hook and gives every connector
0s. Verified:Stepper/Step.tsx:1120,:1128; the hook reads the setting or the theme (privateAttributes/reducedMotion.stylex.ts:110-113). - Description: the survey covers every transform transition in Core. Verified: every non-test Core transition that names
transformtakes the factor or is timed in script, apart from the press scale (Button, the Selector family, and Carousel's override of the Button list) and the mega-menu panel entrance, which the survey leaves out. - Description: slides a script waits on (Drawer, MobileNav, the bottom sheet stack, the date field title) give 0.01 s under the mark. Verified: each adds
settle. - Description: the bottom sheet's entrance and exit give
0sunder the mark, its own wait resolves a zero duration, and on a touch screen the setting fades it in over 200 ms. Verified:BottomSheet/BottomSheetPanel.tsx:391,:394,:749. - Description: the scrim's hover clip delay takes the factor too. Verified:
Overlay/OverlayScrim.tsx:58. - Description: the press scale and the mega-menu panel entrance are left for a follow-up. Verified: neither changes.
- Description: the new spec covers eight stories in four modes, failing without the change and passing with it. Verified: 8 of 8 fail on
mainwith only the spec added, and 8 of 8 pass with the change, in CI at this head too. - Description: the TreeList test now expects the chevron to land at once and passes 18 of 18. Verified: 18 of 18 pass in Chromium in CI at this head.
- Description: tests that pin duration strings and one snapshot are updated, and the Stepper timing tests pass. Verified: the unit tests passed in CI at this head (every test-node and test-ui shard); the snapshot changes only the chevron's class.
- Description: type check, lint, formatting, the core and Storybook builds and the changeset check are clean. Verified: CI passed them at this head.
- Description: under
'always'the bottom sheet opens and closes in one frame, against 18 to 19 frames without this change; the other cases settle in one frame or matchmain. Consistent with the code (BottomSheet/BottomSheetPanel.tsx:391,:749); the frame counts come from the author's test-only build and were not re-measured. - Description: the changeset says the theme case changes nothing today. Verified.
- Description: 38 files, about +327/−60, most sites changing one duration line. Verified: 38 files, 327 added, 60 deleted.
- Description: the listed overlapping pull requests change different lines. Verified on the unchanged patch.
.changeset/reduced-motion-transform-transitions.md,packages/core/src/motion/reducedMotion.stylex.ts,packages/core/src/motion/__tests__/reducedMotionTransform.a11y.chromium.spec.ts,packages/core/src/Stepper/Step.tsx,packages/core/src/TreeList/__tests__/TreeListExpand.interaction.browser.spec.ts: clear.BottomSheet/BottomSheetPanel.tsx,BottomSheet/BottomSheet.tsx,Dialog/Dialog.tsx,Drawer/Drawer.tsx,MobileNav/MobileNav.tsx,DateInput/TouchDateField.tsx,Toast/Toast.tsx,Overlay/OverlayScrim.tsx: clear; each entrance, slide or fade takes the factor, withsettlewhere a script waits, as the survey says.CodeBlock/CodeBlock.tsx,Collapsible/Collapsible.tsx,MultiSelector/MultiSelector.tsx,Selector/Selector.tsx,TabList/TabMenu.tsx,TreeList/TreeListItem.tsx,Table/plugins/groupedRows/useTableGroupedRows.tsx,Table/plugins/rowExpansion/useTableRowExpansion.tsx,Table/plugins/tree/useTableTreeData.tsx,TopNav/TopNavMenu.tsx,TopNav/TopNavMegaMenu.tsx,Resizable/ResizeHandle.tsx: clear.Banner/Banner.tsx,Chat/ChatDictationButton.tsx,Chat/ChatLayoutScrollButton.tsx,Chat/ChatToolCalls.tsx,ComplexSelector/ComplexSelector.tsx,ProgressBar/ProgressBar.tsx,SideNav/SideNavCollapseButton.tsx,SideNav/SideNavItem.tsx,Switch/Switch.tsx: clear.DateInput/DateInputTouch.test.tsx,ProgressBar/ProgressBar.test.tsx,Toast/ToastViewport.test.tsx,theme/__snapshots__/themeIndicatorSeams.test.tsx.snap: clear.
Summary
Under reduced motion, a transform (a chevron's turn, a panel's slide, a thumb's travel) now lands at once in Core, whether the person turns on Reduce Motion or a theme reduces motion for everyone. Before this change:
Colour and opacity changes keep their durations, except where noted in the survey. Where a site's setting rule already zeroed every property, the theme case matches it. One case differs on purpose: the Dialog's entrance (row below).
Builds on #13138 (the reduced-motion script readers), which has merged into
main; this pull request targetsmain.How
packages/core/src/motion/reducedMotion.stylex.ts:reducedMotionTransform, two StyleX consts.factor: 1, or 0 under the mark;settle: 0, or 0.01s under the mark, for a slide whose end a script waits for.factorreads--_astryx-reduced-motion, which Theme already writes exactly where it writes the mark: on its root, and on<html>for the root theme. A nested theme never writes it back, so a theme that reduces motion for everyone reaches every theme inside it.calc(${durationVars['--duration-fast']} * ${reducedMotionTransform.factor}). Where a site had no setting rule, it adds the literal key'@media (prefers-reduced-motion: reduce)': '0s'. No site spells the property or the mark.useReducesMotion()(the setting or the mark) and hands every connector0s, instead of wrapping its dynamic values incalc.Survey: every transform transition in Core
useReducesMotion()settle)factor, so under the mark the dialog shows at once on every pointer, opacity included. The touch-screen 200 ms fade under the mark is a tracked follow-up (the setting's own fade is unchanged)factortoo@starting-style(same follow-up)Tests
New Chromium spec
packages/core/src/motion/__tests__/reducedMotionTransform.a11y.chromium.spec.ts. It covers eight stories: Collapsible, Resizable, Toast (shown on mount, in a layer portaled outside the story), Selector, Switch, Table row expansion, TreeList and ProgressBar. For every element whose computed transition includestransform, it checks four modes:'always'theme): the same.<html>, which reaches the portaled toast): the same.In both marked modes, each other property keeps the duration the setting gives it.
Red/green: 8/8 fail on #13138's head without this change, and 8/8 pass with it (re-run after the review round: 8/8).
TreeListExpand.interaction.browser.spec.tsasserted a chevron turn under Reduce Motion with a mouse, which no record grants. design:reduced-motion DR1 and DR3 govern (a rotation is movement; with a fine pointer it completes at once), so the test now expects the chevron to land at once; the group's at-once assertion stays (18/18).Unit tests that pin a duration string now expect the factor: Toast's motion contract, the ProgressBar touch and mouse timing, and DateInput's one-duration swap count. One snapshot changes:
themeIndicatorSeams(the chevron's class). The Stepper connector-timing tests are unchanged and pass.Also run: core tsc clean; eslint and prettier clean on the touched files; core and storybook builds.
check:changesetspasses.Motion check (PR Review)
The same FaaS rAF sampling as #13138's check, with a test-only build where a theme resolves
reducedMotion: 'always'. With this PR on top of #13138, under 'always' the BottomSheet opens and closes in 1 frame, like the emulated setting; on #13138 alone it took 18–19. The Table glide, chat auto-scroll and scroll button settle in 1 frame. With no reduced motion set, every case matches main.Changeset
[fix]for@astryxdesign/core. The visible change is the chevrons and the pill under the Reduce Motion setting. No theme can setreducedMotion: 'always'yet, so the theme case changes nothing for anyone today, and the changeset says so.Size
38 files, about +327/−60. Most sites change one duration line (the Dialog's entrance keyframes and the Overlay scrim's fade and clip delays included); the rest are the helper, the spec, the test updates and the changeset.
Overlap checked: #13138 (merged; this change builds on it), #13455 and #13359 (lane 0's own Table row expansion PRs; one-line hunk each, different lines), #12356 (Collapsible/Banner headless disclosure, different lines), #12324, #12258, #12122, #12087, #11987, #11916, #11681, #11246 (Selector-family, different blocks). Joey overlap (known, not a hold): #12450 (SideNavItem) and #12466 (MobileNav), different blocks.