Repository navigation
Conversation
A nested branch shows its appender when its parent, or any block inside the parent, is selected, so a submenu or a Buttons block in a Navigation menu can take new items from the List View. The first level keeps its appender at all times, and the nested branch now receives `showAppender` so List Views without one stay without one. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YY39mts89XNBXysaFcLtoa
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YY39mts89XNBXysaFcLtoa
…-appender-on-hover # Conflicts: # packages/block-editor/CHANGELOG.md # test/e2e/specs/site-editor/navigation-sidebar-list-view.spec.js
…ction Alternate to the selection rule: a nested list keeps its appender row at all times, so rows never move under the pointer, and the appender's toggle is shown while the pointer or focus is on the list's parent, on a block inside it, or on the appender itself. The List View tracks the hovered or focused row and clears it when the pointer or focus leaves the tree grid. The post editor's List View tests target the top-level appender explicitly, since every submenu now carries an appender row too. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WfD1eLDy2gFm7w4gPm4THb
🤖 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: +964 B (+0.01%) Total Size: 9.05 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 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. Regression: updating a specific option will only change its value and will not corrupt others in
|
The nested appender row is added while its list is hovered or holds focus, sliding open as it arrives, and removed otherwise, instead of a blank row waiting at the end of every submenu. The hovered block is frozen while blocks are dragged, so rows do not move under a drag. Each appender is inset one indent level per nesting level, so its toggle sits where the new item's icon will be. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WfD1eLDy2gFm7w4gPm4THb
This was referenced Oct 21, 2026
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?
Exploration, an alternate to #84866. There, a nested list in the List View gets an appender while its parent or a block inside it is selected. Here, the nested appender row is added, sliding open, while the pointer or keyboard focus is on the list's parent, on a block inside it, or on the appender itself, and removed otherwise. The top-level appender is unchanged and always shown. Every appender is inset to its level, so its "+" sits where the new item's icon will be.
This branch contains #84866 plus a trunk merge, so the diff to compare is the last two commits.
Why?
To compare the two triggers side by side. Hover and focus make adding an item a one-step action without first selecting the submenu, and selection then keeps its current meaning.
How?
navigation-list-view.spec.jshovers twice to follow the row.Known risk, by design: rows below a submenu move as its appender row opens and closes while the pointer passes over the list. This is the behavior to evaluate.
Behavior is generic to every List View that shows an appender, as in #84866, so the v1 sidebar and the extensible site editor's navigation route both get it.
Testing Instructions
admin.php?page=site-editor-v2&p=/navigation.Automated: the nested appender test in
test/e2e/specs/site-editor/navigation-sidebar-list-view.spec.jscovers hover, focus, leaving the list, collapsing, the inset, and adding a link, and passes under both the default and the extensible site editor configs.test/e2e/specs/editor/blocks/navigation-list-view.spec.jstargets the top-level appender explicitly and re-hovers before a drag.🤖 Generated with Claude Code
https://claude.ai/code/session_01WfD1eLDy2gFm7w4gPm4THb