-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Allow add before/after on block toolbar menu dropdown when in write mode #70827
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If 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. |
Size Change: +14 B (0%) Total Size: 1.89 MB
ℹ️ View Unchanged
|
@jeryj, it looks like failing e2e tests are related to this change. |
It probably should just open up the Patterns Inserter, like the blue plus does (I'm ok with this being a follow-up/separate PR though): CleanShot.2025-07-22.at.08.36.57.mp4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Once the tests pass, this is good to go. We should follow-up with persisting the same functionality in zoom out (as detailed in #70827 (comment))
…ode (WordPress#70827) * Allow add before/after on block toolbar menu dropdown when in write mode * Update write-design-mode.spec.js --------- Co-authored-by: Rich Tabor <rich@tabor.email>
What?
Closes
Allow the add before/after from the block settings dropdown in write mode.
Why?
You can press Enter on a block to access this behavior, so we may as well leave it in the block settings dropdown too.
How?
Replace the
! isContentOnly
with an! isZoomOut
check, as we still don't want this behavior in zoom out. Ideally we would, but if we use it right now it places you in a paragraph block in zoom out mode, which shouldn't be allowed. We'll need an alternate behavior for this, such as opening the zoom out block inserter before/after and moving focus to it.Testing Instructions
Check that the content position and full height buttons are NOT available
Testing Instructions for Keyboard
Screenshots or screencast