Repository navigation
Conversation
Blocks are dragged directly on the canvas now, so the drag handle in the block toolbar gives its spot to the same inserter button the parent selector has. It adds a block after the selection, or after the last block of a multi selection. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Blocks are dragged directly on the canvas now, so the drag handle leaves the block toolbar. In its place a plus button appends a block at the end of the selected block's own list, the job the appender in the corner of a filled container does today. It shows for a single selected block whose list is filled, unlocked, editable, not a section, and does not grow by typing. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
An appender now only fills an empty block list; a filled list grows from the inserter in the block toolbar. This makes renderAppender a setting for the empty state alone. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Both buttons add a block, one row apart. The rule that decides whether the parent selector shows its inserter now lives in a hook both components read. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The inserter in the block toolbar adds an item to any container, so the accordion, tabs, navigation, gallery and playlist blocks no longer need one of their own. The remove button of the tabs block stays, as nothing generic replaces it. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The tabs block locks its own list, and what a tab adds sits in the nested tab panels block, so the inserter in the block toolbar cannot stand in for it. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
Size Change: +322 B (0%) Total Size: 7.91 MB 📦 View Changed
|
|
Flaky tests detected in 970bdd0. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/32173652656 As a user I want to be able to add multiple close buttons so that users can close the overlay from different positions in
|
A freeform vertical box (group, column, cover, details) is a writing surface and grows like one. The add button applies to a container with a fixed child type (buttons, gallery) or a horizontal or grid arrangement. The parent selector follows the same rule, so the two buttons appear and disappear together. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…-for-drag-button # Conflicts: # packages/block-library/src/gallery/edit.jsx # packages/block-library/src/playlist/edit.jsx
New React files must use the tsx extension since the extension normalization. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The restriction may be declared in block.json or passed to the block list at render time, like the allowedBlocks attribute support or a dynamic set from a plugin. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The toolbar control the tests went through is gone; the placeholder drop zone is the remaining media library path and uses the same handler. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
I think for UX simplicity, the toolbar inserter should always appear in the same spot to the right of the block icon in the block toolbar. Having the inserter move locations feels like a bug, and I think most people won't care to understand the difference between "the parent container block is selected and this inserts inside the container" vs "the sibling is selected and this will insert next to it". Ultimately, the block inserts into the same place either way, ie. "button is inserted in this container," so the mental model is still justified IMO. |
|
I want to bring this in because the disappearing inserter is terrible for content composition. At least this fixed one appearing for any block that has inner blocks is there all the time. Working on bringing over grid interactivity for drag and drop I found that on a canvas or pattern this is even more dearly felt: when the top most block is selected there is no apparent way to add more stuff. See this https://playground-usertest.view.fast/t/8swzmr3z5w for how it feels - select the parent grid, no way to add a block :) |
What?
Removes the appender from filled containers in the canvas and adds a plus button to the block toolbar instead, next to the options menu.
Why?
The corner appender sits in the content, moves as the content reflows, and blocks disagree about when to draw it. Some add their own "Add item" button to the toolbar instead. One control in one place.
How?
renderAppenderis now only for empty blocks. A newBlockAppenderButtonrenders the quick inserter for the selected block, unless the parent selector already shows one. The button is for containers of items: a fixed child type (allowedBlocksinblock.json) or a horizontal or grid layout. A freeform vertical box like a group, column or cover is a writing surface and shows none, in the parent selector too. Accordion, Navigation, Gallery and Playlist lose their own add buttons.Testing Instructions
Testing Instructions for Keyboard
Select a filled container, press Alt+F10, tab to the plus, press Enter.
Screenshots or screencast
The Buttons block selected, with the plus in its toolbar where the corner appender used to be:
Use of AI Tools
Written with Claude Code, reviewed and tested by me.