Skip to content

fix: Respect reduce motion a11y preference - #10672

Merged
gonfunko merged 4 commits into
mainfrom
inanimate
Nov 10, 2026
Merged

gonfunko merged 4 commits into
mainfrom
inanimate

Conversation

@gonfunko

@gonfunko gonfunko commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

The basics

The details

Proposed Changes

This PR makes Blockly respect the reduce motion accessibility option, which can be set at the OS level. When enabled, animations in Blockly will be suppressed. This is evaluated live, so toggling the OS setting will be immediately respected without needing a page load or reinjection. Specific animations which are disabled include:

  • Toasts sliding up and down
  • The DropDownDiv sliding up/down and fading in/out
  • The shrink animation when deleting a block
  • The wobble when disconnecting a block from a stack
  • The ripple when connecting a block to another
  • The rotation of the trashcan lid
  • The pan and zoom when zooming a workspace to fit
  • Scrolling the chosen category into view in the continuous toolbox

This PR adds a Blockly.utils.accessibility.shouldReduceMotion() method which may be used by third party developers to check this setting at runtime.

@gonfunko
gonfunko requested a review from a team as a code owner November 9, 2026 22:13
@gonfunko
gonfunko requested a review from mikeharv November 9, 2026 22:13
@github-actions github-actions Bot added the PR: fix Fixes a bug label Nov 9, 2026

@mikeharv mikeharv left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. One naming nit.

@github-actions github-actions Bot added PR: fix Fixes a bug and removed PR: fix Fixes a bug labels Nov 10, 2026
@gonfunko
gonfunko merged commit 5f30e40 into main Nov 10, 2026
8 checks passed
@gonfunko
gonfunko deleted the inanimate branch November 10, 2026 23:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR: fix Fixes a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants