Pattern Editing: Allow block click-through overlays in contentOnly mode#75160
Draft
talldan wants to merge 1 commit into
Draft
Pattern Editing: Allow block click-through overlays in contentOnly mode#75160talldan wants to merge 1 commit into
talldan wants to merge 1 commit into
Conversation
Open
7 tasks
Contributor
Author
|
Something that I noticed is that the click-through overlay in the nav block doesn't work in the Footer for Twenty Twenty Five (maybe for other themes too). The same problem exists in WordPress 6.9, so it's nothing new and unrelated to this change. Kapture.2026-02-03.at.13.34.36.mp4 |
|
Size Change: +13 B (0%) Total Size: 3 MB
ℹ️ View Unchanged
|
Contributor
Author
|
Keeping this a draft until there's some clarification on the issue - #71757 (comment). |
Contributor
|
Thanks Dan. Noting this PR is on my radar as I believe the interaction to ensure the top level block is selected is important. Appreciate you raising it. |
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?
Fixes #71757
Alternative to #72248
Allows click-through overlays on blocks in contentOnly mode.
Why?
See #72248, apparently this is important for the navigation block.
If it's important for the navigation block then it's also probably important for other blocks that support the overlay and are interactive in patterns. I'm not sure that there needs to be a special case for navigation.
How?
The original reason for disabling overlays in contentOnly was to fix an issue with the Post Content block when page editing with Show Template mode on (#51259 is the original issue). Users are supposed to be able to click straight through to children of the post content.
In this PR I'm proposing revising the way that fix (#51780) was implemented. Instead it applies
"__experimentalDisableBlockOverlay": trueto the post content block, which retains the desired behavior in #51780.Next it reverts some of the change in #51780 to allow overlays again for enabled or contentOnly blocks.
Testing Instructions
Template parts
Post content
Screenshots or screencast
Kapture.2026-02-03.at.13.25.39.mp4