Block Inserter: Animate inserter button icon to signal open state.#78306
Conversation
|
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. |
|
Size Change: +649 B (+0.01%) Total Size: 7.98 MB 📦 View Changed
ℹ️ View Unchanged
|
|
Flaky tests detected in 0a5c318. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/26278899480
|
t-hamano
left a comment
There was a problem hiding this comment.
Thanks for the PR. I like this new behavior, but let's get some design feedback.
|
Thank you both! 🙌
Nice catch! It wasn't taking it because of how stylesheets load in the iframe. Moved it to the mixin so it applies everywhere. |
|
Thank you :) |

What?
Add animation to the inserter button to signal open state and improve ux. When the block inserter panel opens, the
+icon in the toggle button now rotates 45° into an×. Also wires up isPressed on the toggle, keeping it in sync with aria-expanded.Why?
The document tools inserter already does this, so this change follows that pattern. It's a small thing, but these tiny moments of feedback add up. The icon rotation gives you a clear visual cue that something is open and that clicking again will close it, without any extra UI.
How?
The CSS changes mirrors what's already in the document tools inserter, an SVG transition using the same
cubic-bezier easingand arotate(45deg)on.is-pressed.Testing Instructions
+)×.+.Testing Instructions for Keyboard
Screenshots or screencast
block-inserter-open-animation.mp4