Skip to content

Button: Add content controls for content-only editing - #84854

Merged
jeryj merged 17 commits into
trunkfrom
add/button-content-controls
Oct 22, 2026
Merged

jeryj merged 17 commits into
trunkfrom
add/button-content-controls

Conversation

@jeryj

@jeryj jeryj commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

Closes #85151

What?

Bring UX for content only Button editing inline with Navigation Link editing.

Why?

Currently, clicking a contentOnly button in the sidebar only selects the button on the canvas, while clicking a navigation item opens a popover to give you the relevant things to edit.

For contentOnly editing, Navigation and Buttons should be the same experience. You edit the same information:

  • text
  • link (with search emphasis on internal pages)
  • open in new tab
  • preview link

How?

  • packages/block-library/src/button/edit.jsx: a ContentControls ToolsPanel rendered in InspectorControls group="content", mirroring the Navigation Link panel.
  • The picker uses the same suggestions query as the Navigation Link, so it lists pages before anything is typed and prefers them in search. That query and useLinkPreview now live together in packages/block-library/src/utils/link-picker.ts, since Button was importing them from the Navigation Link directory.
  • The View button is a shared ViewLinkButton in packages/block-library/src/utils/, over a useResolvedUrl hook that resolves the link against the home URL the way a browser resolves an href. Hash and relative links get a View button too, and a site-root path on a subdirectory install resolves against the origin, as on the front end. The Navigation Link uses the same component, which fixes the ./page case from review.
  • The new files are TypeScript, so block-library's TypeScript config is split into a build project and a dev project for its tests, per packages/README.md.
  • A shared panel extracted from the Navigation Link was tried and reverted here; the two blocks keep their own panels. I was worried how entangled they were becoming.
  • The panel renders when the Button has a Navigation ancestor (the same getBlockParentsByBlockName check the Search block uses) or when its editing mode is contentOnly. A Button in post content keeps its usual inspector. Opening the panel up everywhere is a follow-up discussion.
  • Link relation stays under Advanced.
  • A Buttons block and its Button are added to the block editor's blockInspectorAnimation setting, so their inspector slides in inside a Navigation block like the other menu items.

Screenshots

Unchanged: Default editing Button Block click

Clicking a non-contentOnly button shows this state.

On canvas toolbar and inspector sidebar in design state

ContentOnly List View Click

When clicking a contentOnly list view for a button, you see the popover to edit the fields.
Button in a menu showing the popover

Button within a Navigation List View (not content only)

Clicking a button within a Navigation offers the same experience as clicking a navigation item in the list view.
Button within a navigation shows the link edit fields

Testing Instructions

In a menu

  1. Edit a template with a Navigation block, or add one to a post, and add a Buttons block with a Button to the menu.
  2. Select the Button on the canvas. The sidebar opens on the content tab with a Settings panel: Text, Link to, Open in new tab, and View, like a Page link in the same menu.
  3. Select a Button outside a menu. Its inspector is unchanged.

In a content-only List View

  1. Edit a post. Add a Group, set its Template lock to "Content only", and put a Navigation block inside it (or paste <!-- wp:group {"templateLock":"contentOnly"} --> around one in the code editor).
  2. Give the menu a Buttons block with a linked Button (edit the menu with the lock off, or in Appearance > Editor > Navigation).
  3. Select the Navigation block, open the block inspector, and click the List View tab.
  4. Click the Button row. A Settings popover opens with Text, Link to, Open in new tab, and View, like a Navigation Link row. Edits apply to the button on the canvas.
  5. Without the lock, the Button's inspector is unchanged.
npm run test:e2e -- specs/editor/blocks/navigation.spec.js -g "Button inside the menu"
npm run test:e2e -- specs/editor/blocks/buttons.spec.js -g "outside a Navigation"
npm run test:e2e -- specs/editor/blocks/navigation-list-view.spec.js -g "edits a Button"

Testing Instructions for Keyboard

Same as above. Tab into the List View, arrow to the Button row, and press Enter to open the popover. Escape closes it and returns focus to the row.

🤖 Generated with Claude Code

https://claude.ai/code/session_01E1o9yTAtStCTHxjhPHeg8P

@jeryj
jeryj requested a review from fabiankaegy as a code owner October 15, 2026 18:28
@github-actions github-actions Bot added the [Package] Block library /packages/block-library label Oct 15, 2026
@jeryj jeryj added [Feature] Content Only Editing [Feature] List View Menu item in the top toolbar to select blocks from a list of links. [Type] Enhancement A suggestion for improvement. [Block] Button labels Oct 15, 2026
@github-actions

github-actions Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

🤖 PR meta 🤖

Preview in WordPress Playground

🎉 Props

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: jeryj <jeryj@git.wordpress.org>
Co-authored-by: mikachan <mikachan@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

Updated as activity occurs, without notifying anyone named here. Add the props-bot label to refresh.

📦 Bundle size

Size Change: +4.23 kB (+0.05%)

Total Size: 9.06 MB

📦 View Changed
Filename Size Change
build/scripts/block-editor/index.min.js 606 kB +12 B (0%)
build/scripts/block-library/index.min.js 449 kB +4.22 kB (+0.95%)

c34fb38 Run

⚡ Performance

Show the results

Client side metrics exclude the server response time.

front-end-block-theme

Metric 37e1782 trunk % Change
timeToFirstByte 35.4 ms +19.77% -6.5% 34.85 ms +19.66% -3.59% 1.58%
largestContentfulPaint 66 ms +3.03% -9.09% 60 ms +13.33% -6.67% 10%
lcpMinusTtfb 26.3 ms +18.06% -5.89% 24.15 ms +6.42% -6.42% 8.9%
wpBeforeTemplate 18.56 ms +23.38% -4.85% 18.02 ms +29.74% -2.16% 3%
wpTemplate 13.71 ms +6.49% -8.97% 13.53 ms +9.31% -5.69% 1.33%
wpTotal 32.32 ms +17.98% -6.59% 31.7 ms +19.84% -3.38% 1.96%
wpMemoryUsage 7.66 MB +0% -0% 7.63 MB +0% -0% 0.43%
wpDbQueries 16 +0% -0% 16 +0% -0% 0%

front-end-classic-theme

Metric 37e1782 trunk % Change
timeToFirstByte 29.35 ms +13.8% -2.56% 28.1 ms +17.44% -3.91% 4.45%
largestContentfulPaint 68 ms +8.82% -0% 62 ms +6.45% -3.23% 9.68%
lcpMinusTtfb 38.9 ms +4.76% -3.6% 33.6 ms +4.76% -2.68% 15.77%
wpBeforeTemplate 16.23 ms +14.97% -1.42% 16.86 ms +28.05% -3.08% -3.74%
wpTemplate 10.3 ms +7.96% -4.85% 8.28 ms +14.37% -3.74% 24.4%
wpTotal 26.67 ms +14.85% -3.07% 25.32 ms +19.87% -3.08% 5.33%
wpMemoryUsage 6.35 MB +0% -0% 6.21 MB +0% -0% 2.34%
wpDbQueries 13 +0% -0% 9 +0% -0% 44.44%

media-processing

Metric 37e1782 trunk % Change
mediaProcessingJpeg 227.24 ms +8.85% -1.02% 230.01 ms +1.25% -1.46% -1.2%
mediaProcessingAvif 3705.09 ms +1.21% -1.39% 3803.22 ms +0.49% -0.48% -2.58%
mediaProcessingJpegToAvif 2600.68 ms +1.98% -1.44% 2626.54 ms +0.98% -0.32% -0.98%

media-upload

Metric 37e1782 trunk % Change
jpegUploadProcessing 1412.28 ms +1.21% -0.88% 1402.49 ms +0.41% -0.65% 0.7%
pngUploadProcessing 184.64 ms +1.85% -4.37% 186.79 ms +6.18% -6.88% -1.15%
largeJpegUploadProcessing 1397.32 ms +1.28% -0.38% 1404.56 ms +0.33% -1.15% -0.52%
multipleImageUploadProcessing 1478.02 ms +0.79% -0.89% 1481.93 ms +0.15% -0.38% -0.26%

post-editor

Metric 37e1782 trunk % Change
serverResponse 278.77 ms +6.58% -8.45% 297.92 ms +4.02% -6.17% -6.43%
firstPaint 289.95 ms +31.73% -32.23% 221.28 ms +60.86% -22.18% 31.03%
domContentLoaded 822.25 ms +5.68% -4.83% 836.86 ms +1.21% -4.35% -1.75%
loaded 823.35 ms +5.67% -4.84% 837.78 ms +1.2% -4.31% -1.72%
firstContentfulPaint 378.31 ms +6.5% -2.93% 375.65 ms +6.93% -5.24% 0.71%
firstBlock 2275.27 ms +7.8% -1.81% 2470.2 ms +3.12% -2.12% -7.89%
type 14.93 ms +9.04% -3.95% 15.24 ms +6.69% -3.22% -2.03%
typeWithoutInspector 14.57 ms +11.05% -2.4% 16.02 ms +6.05% -2.43% -9.05%
typeWithTopToolbar 18.4 ms +6.14% -6.68% 19.15 ms +2.72% -1.51% -3.92%
typeContainer 6.61 ms +8.17% -1.97% 7.34 ms +7.08% -9.67% -9.95%
focus 91.54 ms +11.06% -6.57% 87.14 ms +5.83% -4.37% 5.05%
firstFocus 160.58 ms +0% -0% 165.94 ms +0% -0% -3.23%
selectAll 396.18 ms +19.38% -6.93% 401.65 ms +3.03% -1.45% -1.36%
listViewOpen 50.49 ms +13.73% -4.06% 56.05 ms +7.55% -7.65% -9.92%
inserterOpen 33.85 ms +7.42% -9.93% 33.68 ms +9.09% -1.54% 0.5%
inserterHover 10.5 ms +9.9% -7.43% 10.29 ms +3.98% -6.03% 2.04%
inserterSearch 7.41 ms +3.51% -13.23% 7.39 ms +4.47% -1.49% 0.27%
loadPatterns 500.9 ms +3.32% -1.44% 468.8 ms +3.79% -3.1% 6.85%
wpTotal 271.77 ms +6.53% -8.67% 290.65 ms +4.13% -6.16% -6.5%
wpMemoryUsage 14.70 MB +0% -0% 14.66 MB +0% -0% 0.24%
wpDbQueries 55 +0% -0% 55 +0% -0% 0%

site-editor

Metric 37e1782 trunk % Change
serverResponse 523.5 ms +1.12% -8.64% 516.16 ms +5.69% -7.82% 1.42%
firstPaint 263.15 ms +7.62% -12.3% 249.61 ms +7.06% -12.83% 5.42%
domContentLoaded 1317.24 ms +1.99% -1.28% 1282.97 ms +1.63% -1.66% 2.67%
loaded 1318.45 ms +1.98% -1.27% 1284.01 ms +1.62% -1.65% 2.68%
firstContentfulPaint 535.73 ms +1.11% -4.35% 408.73 ms +23.48% -13.17% 31.07%
firstBlock 4884.5 ms +0.83% -1.2% 4811.01 ms +1.13% -1.07% 1.53%
type 21.08 ms +1.28% -4.08% 19.25 ms +0.1% -1.61% 9.51%
navigate 130.03 ms +7.63% -5.21% 135.78 ms +8.17% -3.04% -4.23%
loadPatterns 1433.41 ms +1.66% -2.55% 1276.77 ms +11.34% -13% 12.27%
loadPages 1034.22 ms +2.45% -1.73% 1006.12 ms +3.8% -5.65% 2.79%
wpTotal 513.81 ms +1.07% -8.83% 505.88 ms +6.06% -7.88% 1.57%
wpMemoryUsage 12.71 MB +0% -0% 12.68 MB +0% -0% 0.27%
wpDbQueries 44 +2.27% -0% 44 +2.27% -0% 0%

c34fb38 Run

🏁 Flaky tests

Some 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 /test/e2e/specs/editor/various/core-settings.spec.js, passed after 1 failed attempt.
Error: expect(received).toStrictEqual(expected) // deep equality

- Expected  - 1
+ Received  + 1

  Array [
    "rewrite_rules",
-   "SERIALIZED DATA",
+   "",
  ]
    at forEach (/home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/core-settings.spec.js:46:26)
    at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/core-settings.spec.js:43:35

c34fb38 Run

@jeryj
jeryj force-pushed the add/button-content-controls branch 4 times, most recently from daddb4a to e4dfe48 Compare October 15, 2026 21:10

@mikachan mikachan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really like the direction here, and keeping a separate panel per block instead of one shared, tangled one seems like a good plan. I've left a couple of other comments.

Comment on lines +185 to +192
resetAll={ () =>
setAttributes( {
text: '',
url: undefined,
linkTarget: undefined,
rel: undefined,
} )
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

resetAll always clears url, linkTarget and rel, even when isLinkEditable is false. When url is bound to a source, the user can't edit it (via lockUrlControls), but setBoundAttributes still sends the change to source.setValues, or onto the attribute itself if the source has no setValues. So "Reset all" can clear a link the panel deliberately hides. It also clears a custom rel that the user may have set in the Advanced panel. Maybe we could only reset the fields this panel renders:

Suggested change
resetAll={ () =>
setAttributes( {
text: '',
url: undefined,
linkTarget: undefined,
rel: undefined,
} )
}
resetAll={ () =>
setAttributes( {
text: '',
...( isLinkEditable && { url: undefined, linkTarget: undefined, rel: undefined } ),
} )
}

Comment on lines +162 to +167
// Hash links and relative paths other than site-root paths can't be
// opened on their own.
const isViewableUrl =
!! url &&
( ! isHashLink( url ) ||
( isRelativePath( url ) && ! url.startsWith( '/' ) ) );

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like this comment is out of date. It says relative paths other than site-root paths can't be opened, but the check only excludes hash links. And then the second clause can't be reached, as a hash link never starts with ./. So ./foo or ../foo get a View button that opens relative to wp-admin. I think this was copied from navigation-link/shared/controls.jsx:144. Here's a version that matches the comment:

Suggested change
// Hash links and relative paths other than site-root paths can't be
// opened on their own.
const isViewableUrl =
!! url &&
( ! isHashLink( url ) ||
( isRelativePath( url ) && ! url.startsWith( '/' ) ) );
// Hash links and relative paths other than site-root paths can't be
// opened on their own.
const isViewableUrl =
!! url &&
! isHashLink( url ) &&
( ! isRelativePath( url ) || url.startsWith( '/' ) );

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Things like this is why I'm hesitant to wholesale duplicate it. This also exists in the Navigation Link block, so it would need to get updated there. Maybe we can refactor it into base utility components, but not have the entire panel one big component.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Refactoring into base utility components sounds good. I think this would be fine as a follow-up since it needs to be changed in the Navigation Link block too.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe it means putting isViewableUrl into link-control/is-url-like.ts with the other isHashLink and isRelativePath, or even moving all of link-control/is-url-like.ts into a utility in the block editor or even base wordpress/url.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm refactoring this into a hook and component. The View button is getting used now in several places:

This logic would need to get duplicated in each spot, so I'm refactoring it here instead.

@jeryj
jeryj force-pushed the add/button-content-controls branch from e4dfe48 to 22af406 Compare October 16, 2026 16:03
@github-actions github-actions Bot added the [Package] Edit Site /packages/edit-site label Oct 16, 2026
@jeryj

jeryj commented Oct 16, 2026

Copy link
Copy Markdown
Contributor Author

@mikachan This PR got larger but it's mostly just refactoring of moving code around. I ended up doing it here since the social link changes in #84860 would also rely on some of it. Ready for review again.

@jeryj
jeryj requested a review from ellatrix as a code owner October 16, 2026 20:07
@github-actions github-actions Bot added the [Package] Block editor /packages/block-editor label Oct 16, 2026

@mikachan mikachan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the updates! I found two small questions/comments, but this is looking close to landing 🙌

jeryj added a commit that referenced this pull request Oct 19, 2026
…rch (#85122)

Some blocks, like Social Icons and Button Blocks are not able to be edited or added from the site editor sidebar. This is being worked on in #84866, #84860, and #84854. Those won't make the 7.2 cutoff, so we should exclude those blocks from the site editor block search rather than offer an incomplete experience.
---------

Co-authored-by: jeryj <jeryj@git.wordpress.org>
Co-authored-by: mikachan <mikachan@git.wordpress.org>
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
@jeryj
jeryj force-pushed the add/button-content-controls branch from a095f81 to 6467c7d Compare October 20, 2026 18:36

@mikachan mikachan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the changes, @jeryj! They're looking good. I've found one more small potential change, but otherwise I think this is ready to bring in.

jeryj and others added 4 commits October 21, 2026 11:20
In a content-only section the Button block had no content controls, so
selecting it in the List View opened nothing, unlike a Navigation Link.
Add a content ToolsPanel with Text, Link to, Open in new tab, and View,
rendered only when the block's editing mode is contentOnly so the
regular inspector is unchanged.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01E1o9yTAtStCTHxjhPHeg8P
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01E1o9yTAtStCTHxjhPHeg8P
Every other item in a menu edits from a Settings panel in the sidebar,
so a Button there gets the panel too, not only in content-only editing.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01E1o9yTAtStCTHxjhPHeg8P
Extract the Text, Link to, Open in new tab and View controls into
LinkContentControls, a presentational panel that takes values and
callbacks. The Navigation Link keeps its entity logic and passes in its
Edit button and extra items; the Button maps its own attributes onto the
same props.

The panel is TypeScript, so the ToolsPanel dropdown props hook moves to
its own typed file, re-exported from utils/hooks, and the upload hook's
JSDoc marks its arguments optional to match its default.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01E1o9yTAtStCTHxjhPHeg8P
jeryj and others added 10 commits October 21, 2026 11:20
…ton"

This reverts commit 8c0d60b. The shared
panel tied the Button's controls to the Navigation Link's, so the Button
keeps its own inline Settings panel instead.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YY39mts89XNBXysaFcLtoa
Pass the navigation link's suggestions query so the picker lists pages
before anything is typed and prefers them in search results.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01E1o9yTAtStCTHxjhPHeg8P
Both blocks copied the same check for whether a link can be opened, and the copy had drifted: the comment said relative paths other than site-root paths can't be opened, but the code only excluded hash links, so `./page` got a View button that opened relative to wp-admin.

`useResolvedUrl` now resolves the link against the site's home URL the way a browser resolves an `href`, so hash links and relative paths open too, and a site-root path on a subdirectory install resolves against the origin as it does on the front end. It only subscribes to the site data when the link is relative. `ViewLinkButton` renders the button over it, and both blocks use the component.

The new files are TypeScript, so block-library's TypeScript config is split into a build project and a dev project for its tests, following the layout in packages/README.md.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017N6SBnzQbqs3yXsiyVbAPh
The Button block reached into the Navigation Link directory for `useLinkPreview` and `getSuggestionsQuery`, the two helpers a block needs around the block editor's `LinkPicker`. Both now live together in `utils/link-picker.ts`, typed, and Navigation Link, its Link UI, and Button import them from there. Their tests move with them and drop out of the lint suppressions.

Two `computeDisplayUrl` tests passed a bare string where the function takes an options object, so they asserted nothing; they now pass the object.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017N6SBnzQbqs3yXsiyVbAPh
The two tests that put a Button inside a Navigation block are about how the menu edits its items, so they belong in the Navigation block's spec. The test that checks a Button outside a menu keeps its usual inspector stays with the Button tests.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017N6SBnzQbqs3yXsiyVbAPh
The block inspector animates between a Navigation block and the menu items it lists, but only for the block names in the `blockInspectorAnimation` setting. A Buttons block and its Button were missing, so their panels appeared without the slide the other menu items get.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017N6SBnzQbqs3yXsiyVbAPh
…nd panel

Review follow-ups on the content controls:

- Resolve relative links against the home URL as a directory, so a
  subdirectory install keeps `./page` inside the subdirectory.
- Define `setText`, `setLink`, and `unlink` once in `ButtonEdit` and use
  them from the canvas `RichText`, the link popover, and the content
  panel, so the three can't drift. The panel's Text field now strips a
  nested anchor tag like the canvas does.
- Disable the panel's Text field when `text` is bound to a source the
  user can't edit, matching the read-only canvas.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DaQQeap7U6o932CHso3b4C
Trunk split these packages into a build project and a dev project, so
the block-library build project must reference their tsconfig.build.json
or declaration emit fails with TS6310.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DaQQeap7U6o932CHso3b4C
Trunk published block-editor 19.0.0 and block-library 12.0.0 after the
rebase, which left this PR's entries under those versions.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DaQQeap7U6o932CHso3b4C
Without a link, checking the box stored an empty URL with a `_blank` target and `noopener` rel. Match the toolbar link popover and render the checkbox only when a URL is set.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DaQQeap7U6o932CHso3b4C
@jeryj
jeryj force-pushed the add/button-content-controls branch from 286a2c5 to 048296b Compare October 21, 2026 16:21
Trunk now publishes the block editor's type declarations (#85036), so the `@ts-expect-error` on its import is unused and fails the type check.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DaQQeap7U6o932CHso3b4C

@mikachan mikachan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks @jeryj!!

@jeryj
jeryj enabled auto-merge (squash) October 22, 2026 15:25
@jeryj
jeryj merged commit b64c4ea into trunk Oct 22, 2026
109 of 114 checks passed
@jeryj
jeryj deleted the add/button-content-controls branch October 22, 2026 22:29
@github-actions github-actions Bot added this to the Gutenberg 24.4 milestone Oct 22, 2026
jeryj added a commit that referenced this pull request Oct 29, 2026
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Block] Button [Feature] Content Only Editing [Feature] List View Menu item in the top toolbar to select blocks from a list of links. [Package] Block editor /packages/block-editor [Package] Block library /packages/block-library [Package] Edit Site /packages/edit-site [Type] Enhancement A suggestion for improvement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

List View: Allow editing buttons elements

2 participants