Opened 3 weeks ago
Closed 3 weeks ago
#64529 closed defect (bug) (fixed)
Administration: view transitions should be disabled when a user disabled animation effects
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 7.0 | Priority: | normal |
| Severity: | normal | Version: | trunk |
| Component: | Administration | Keywords: | has-patch commit |
| Focuses: | ui, accessibility | Cc: |
Description
Related ticket: #64470
Users can disable animation effects at the OS level. For example, on Windows, this can be done via Settings → Accessibility → Visual effects. Similar settings should be available on all major operating systems.
In my opinion, if a user prefers reduced motion, view transitions should also be disabled.
We may be able to simply change it as follows:
@view-transition { navigation: auto; } @media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } } #adminmenu > .menu-top { view-transition-name: attr(id type(<custom-ident>), none); }
or:
@media (prefers-reduced-motion: no-preference) { @view-transition { navigation: auto; } #adminmenu > .menu-top { view-transition-name: attr(id type(<custom-ident>), none); } }
Attachments (1)
Change History (9)
#1
@
3 weeks ago
- Keywords needs-patch added
- Milestone changed from Awaiting Review to 7.0
- Version set to trunk
This ticket was mentioned in PR #10762 on WordPress/wordpress-develop by @mukesh27.
3 weeks ago
#4
Trac ticket: https://core.trac.wordpress.org/ticket/64529
This PR addresses accessibility concerns regarding the View Transitions API. Currently, cross-document transitions trigger automatically if enabled, which may cause discomfort or distraction for users with vestibular disorders or motion sensitivities.
Following the principle of Progressive Enhancement, this change ensures that view transitions are only activated for users who have not expressed a preference for reduced motion at the OS level.
#5
@
3 weeks ago
Thanks @solankisoftware for sharing the patch 64529-disable-view-transitions-reduced-motion.patch.
It looks like the patch targets wp-admin/css/common.css, but the original view transition styles live in a dedicated file: src/wp-admin/css/view-transitions.css.
Because of that, I’ve opened a PR that takes a more progressive approach to addressing the issue: https://github.com/WordPress/wordpress-develop/pull/10762
If you have a moment, I’d really appreciate you taking a look. Thanks!
I’ve added a patch to disable admin view transitions when users prefer reduced motion.
The patch uses prefers-reduced-motion to set navigation:none for ::view-transition,
ensuring OS-level accessibility settings are respected.
Tested on Windows 11 (Animation effects disabled).
Patch attached. Feedback welcome.