Repository navigation
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 🏷️ 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: -50 B (0%) Total Size: 8.56 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
|
…n them A Button now renders its content panel (Text, Link to, Open in new tab, View) in every editing context, not only inside a Navigation block or in content-only editing. The block inspector therefore opens on a Content tab like an Image or a Navigation Link, and the block styles, color, typography, width, and border controls move to the Styles tab. The Advanced panel (HTML element, Link relation) sits on the Settings tab. The e2e specs that assumed a flat Button inspector click the Styles or Settings tab first, and the link popover test scopes its checkboxes to the popover since the sidebar now has its own "Open in new tab" checkbox. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LsZq1CtjWAJVKoH1RVYdGF
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LsZq1CtjWAJVKoH1RVYdGF
Selecting a Button from its parent Buttons block's List View tab opens the inspector on the Content tab, and edits to Text and Link to there reach the block and the canvas. Keep the merged #84854 changelog entry and give this PR its own. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01S1u1vgir2YJpmNhb7h3ESd
4736c8e to
1af1004
Compare
Part of #85961.
What?
A Button renders its content panel (Text, Link to, Open in new tab, View) in every editing context, not only inside a Navigation block or in content-only editing. The block inspector opens on a Content tab with those controls, like an Image or a Navigation Link, and the block styles, color, typography, width, and border controls move to the Styles tab.
Why?
#84854 added the content panel only for a Button in a menu or in a content-only section. A Button in post content kept its flat inspector, so the same block edited two different ways depending on where it sat. Selecting a Button, whether on the canvas or from its Buttons block's List View tab, should offer the same simplified flow as an Image or a Navigation Link: the content first, the styling on its own tab.
How?
packages/block-library/src/button/edit.jsx: theInspectorControls group="content"fill renders unconditionally. The Navigation-ancestor and content-only gate is removed.Testing Instructions
Testing Instructions for Keyboard
Same as above. Tab into the inspector, arrow between the Content, Settings, and Styles tabs (and the Buttons block's List View tab), and Tab into the Text field, the Link to button, and the Open in new tab checkbox.
🤖 Generated with Claude Code
https://claude.ai/code/session_01LsZq1CtjWAJVKoH1RVYdGF