ProgressBar: Respect reduced motion preferences - #82490
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. To trigger a review, include ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Team Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Comment |
🤖 PR meta 🤖📦 Bundle sizeSize Change: +53 B (0%) Total Size: 8 MB 📦 View Changed
⚡ PerformanceShow the resultsClient side metrics exclude the server response time. front-end-block-theme
front-end-classic-theme
media-processing
media-upload
post-editor
site-editor
🏁 Flaky testsShow the failuresSome tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information. persists table layout across all tabs with unified view persistence (Site Editor v2) in
|
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Closes #76926
Alternative to #77051, updated for the current SCSS implementation.
What?
Make determinate
ProgressBarupdates immediate and use a slower, stepped indeterminate animation when the user prefers reduced motion.Why?
Determinate transitions and the continuous indeterminate animation currently run regardless of the user's OS or browser preference.
How?
The determinate transition only runs when reduced motion is not preferred. Under
prefers-reduced-motion: reduce, determinate progress snaps to each supplied value, while the repeating indeterminate animation advances in four steps over 3 seconds. The default motion stays unchanged.Testing Instructions
prefers-reduced-motion: reducein the browser developer tools or OS settings.valuecontrol to several values. Confirm that updates are immediate with reduced motion enabled and smooth with it disabled.Testing Instructions for Keyboard
There is no keyboard interaction in this change. Confirm that the progress bar remains exposed with
role="progressbar"and its accessible label.Screencast
Note: with
prefers-reduced-motion: reduceKapture.2026-09-06.at.14.51.25.mp4
Kapture.2026-09-06.at.14.52.47.mp4
Use of AI Tools
I used Codex to investigate the issue, implement the change, and draft this pull request.