Skip to content

Support prefers-reduced-motion#48357

Draft
mj12albert wants to merge 3 commits intomui:masterfrom
mj12albert:prefers-reduced-motion
Draft

Support prefers-reduced-motion#48357
mj12albert wants to merge 3 commits intomui:masterfrom
mj12albert:prefers-reduced-motion

Conversation

@mj12albert
Copy link
Copy Markdown
Member

@mj12albert mj12albert commented Apr 22, 2026

Requires #48325

Enabled with a theme-level config:

const theme = createTheme({
  transitions: {
    reducedMotion: 'system',
  },
});

Component-level opt-out:

<Collapse in={open} disablePrefersReducedMotion />

To preview, emulate prefers-reduced-motion: reduce in Chrome devtools. Animations/transitions on components do not run, and skips as much work as possible:

Closes #16367

@mj12albert mj12albert added accessibility a11y scope: transitions Changes related to the transitions. labels Apr 22, 2026
@code-infra-dashboard
Copy link
Copy Markdown

code-infra-dashboard Bot commented Apr 22, 2026

Bundle size

Bundle Parsed size Gzip size
@mui/material 🔺+50B(+0.01%) ▼-74B(-0.05%)
@mui/lab 0B(0.00%) 0B(0.00%)
@mui/private-theming 0B(0.00%) 0B(0.00%)
@mui/system 0B(0.00%) 0B(0.00%)
@mui/utils 🔺+181B(+1.20%) 🔺+59B(+1.02%)

Details of bundle changes

Deploy preview


Check out the code infra dashboard for more information about this PR.

@mj12albert mj12albert force-pushed the prefers-reduced-motion branch from e58d6bd to c0ded88 Compare April 22, 2026 22:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

accessibility a11y scope: transitions Changes related to the transitions.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support for prefers-reduced-motion

1 participant