Repository navigation
Conversation
🤖 PR meta 🤖🏷️ LabelsThis pull request needs exactly one label indicating its type, and has 0.
Read more about Type labels in Gutenberg. If you cannot add labels yourself, a reviewer can do it for you. 📦 Bundle sizeSize Change: +18 B (0%) Total Size: 8.56 MB 📦 View Changed
🏁 Flaky testsSome 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. Both users add blocks simultaneously, both changes appear (RTC WebSocket) in
|
… text While the caret is in a paragraph, heading or list item, the canvas is one editing host, so every block counts as editable and the hover outline never showed, although the grab cursor does. Count the block's own element as draggable when it is only editable because of the editing host. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ellatrix
force-pushed
the
claude/hover-outline-editing-host
branch
from
October 28, 2026 03:54
99421b9 to
4cbf35d
Compare
ellatrix
changed the base branch from
claude/list-drag-drop-bullet-6bff92
to
trunk
October 28, 2026 03:54
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What?
Follow up to #81798.
Shows the block outline on hover over a block's own element (a separator, a spacer, an image's frame, a group's padding, a list item's bullet) while the caret is in a paragraph, heading or list item, where the grab cursor already shows.
Why?
While the caret is in one of those blocks, the canvas is one editing host, so every block counts as editable content. The hover code only shows the outline over content that isn't editable, so the outline never showed there, while the cursor still shows grab.
On trunk, a press there doesn't drag the block yet while the caret is in text. #85801 makes it drag again, using the same rule as this PR, so the outline then matches the press.
How?
The hover check also counts the block's own element as draggable when it is only editable because of the editing host.
Testing Instructions
Open in Playground (a post with a paragraph, a spacer and another paragraph, open in the editor).
The new e2e test
shows the hover outline on a block while the caret is in textfails on trunk (in Chromium and WebKit) and passes with this change. It is tagged to run in Firefox and WebKit in CI too.Testing Instructions for Keyboard
The outline is a pointer hover state. Keyboard behaviour is not changed.
Screenshots or screencast
Caret in the first paragraph, then hovering the spacer:
hover-outline-trunk-before.mp4
hover-outline-trunk-after.mp4
Use of AI Tools
Written with Claude Code (Claude Opus 5.5).
🤖 Generated with Claude Code