Repository navigation
List View Tab: Hide when multiple blocks are selected - #87435
Conversation
🤖 PR meta 🤖🎉 PropsIf 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. Props Bot commandsYou can trigger Props Bot actions by commenting on this PR:
Updated as activity occurs, without notifying anyone named here. Add the 📦 Bundle sizeSize Change: +4 B (0%) Total Size: 8.72 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. should give the image its context menu while selected @WebKit @Firefox in
|
74cc351 to
59a6852
Compare




What?
Follow-up to: #87374
In a multiselection, hide the List View tab.
Why?
On trunk, if you select multiple Buttons or Gallery blocks, the list view tab in the right-hand inspector will show the list view of the first block in the selection. This is misleading as it doesn't represent the overall block selection.
To fix this, let's hide the tab altogether as in a multi-selection. As a side-effect, hiding the list view tab also fixes the issue of empty Settings tabs in a multi-selection, thanks to this check:
gutenberg/packages/block-editor/src/components/inspector-controls-tabs/use-inspector-controls-tabs.ts
Lines 91 to 94 in f757bd0
With this PR,
hasListFillswill be falsy, which allows the settings tab to hide.How?
ListViewPanelif we're in a multi-selection.Testing Instructions
Screenshots or screencast
Before
After
Responsive styles editing mode
On
trunkresponsive styles editing mode for Gallery and Buttons blocks would result in an empty Settings tab. Here, we no longer have any tabs, and it's all just the one responsive styles view pane:Use of AI Tools
Claude Code (Opus 5.5)