-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Zoom Out: Remove zoom-out toolbar (#66039) #66200
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: -643 B (-0.04%) Total Size: 1.77 MB
ℹ️ View Unchanged
|
In order for the block toolbar to work properly, I had to include in the backport a small chunk of this PR #65485 as otherwise the toolbar doesn't appear in blocks with non default mode (which is the case for zoom-out sections) |
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.
What happened to this formatting :/
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.
code LGTM
@youknowriad this PR should also revert #66119 now? Or should we revert merging that instead? @getdave ? |
{ ! isMultiToolbar && | ||
isLargeViewport && | ||
isDefaultEditingMode && <BlockParentSelector /> } | ||
{ showParentSelector && ! isMultiToolbar && isLargeViewport && ( | ||
<BlockParentSelector /> | ||
) } | ||
{ ( shouldShowVisualToolbar || isMultiToolbar ) && | ||
( isDefaultEditingMode || | ||
( isContentOnlyEditingMode && ! hasParentPattern ) || | ||
isSynced ) && ( | ||
! hasParentPattern && ( |
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.
Should the isContentOnlyEditingMode
checks be removed here? That change seems to be part of #65204 that wasn't being backported.
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.
In order for the block toolbar to work properly, I had to include in the backport a small chunk of this PR #65485 as otherwise the toolbar doesn't appear in blocks with non default mode (which is the case for zoom-out sections)
Ah, this must be what you were talking about here. What's the best way to test this?
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.
I think we need to test the toolbar in zoom-out (it should appear) and we should check whether the toolbar in "content-only" blocks is unchanged/makes sense.
@draganescu If I'm not wrong, this PR already includes that revert kind of |
Seems I opened this PR before you do the cherry-pick so I'll have to rework this branch a bit. |
Co-authored-by: youknowriad <youknowriad@git.wordpress.org> Co-authored-by: ellatrix <ellatrix@git.wordpress.org> Co-authored-by: getdave <get_dave@git.wordpress.org> Co-authored-by: draganescu <andraganescu@git.wordpress.org> Co-authored-by: annezazu <annezazu@git.wordpress.org> Co-authored-by: jasmussen <joen@git.wordpress.org> Co-authored-by: stokesman <presstoke@git.wordpress.org> Co-authored-by: richtabor <richtabor@git.wordpress.org> Co-authored-by: ntsekouras <ntsekouras@git.wordpress.org> Co-authored-by: jameskoster <jameskoster@git.wordpress.org>
5448b74
to
811818b
Compare
Rebased this again. I'd appreciate another round of testing. |
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.
Temporary blocking review here to avoid this merging until we've made a decision to include in 6.7.
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.
Looks like this is nearly ready to backport.
Thanks for taking care of backporting this Riad 🙇 Looks like there might be a couple of bugs here. I'd like to include this in RC1 and I will cutting packages on Monday morning UTC. |
Should we track these separately as I believe they need to be fixed in trunk too. |
Definitely seeing some additional toolbar controls for various blocks. There is an issue tracking it for the cover block already - #66206, so that could be a good place to record the various issues. Other than the issues already spotted, the post content block seems to have a toolbar when selected, while in Columns also has the vertical alignment toolbar item: If we're happy to merge with those known issues tracked separately, then it looks good to me. |
I understand what you're saying. However, this PR is quite late in the release cycle for 6.7. These bugs do not currently manifest on the I'll be cutting the packages for RC 1 on Monday morning UTC and it would be good if RC 1 was as stable as possible. Therefore I think we should push to fix the known issues before we merge this one. |
Here's a PR that solves the toolbar issues. #66243 I'm not sure if the inserter issues are specific to this PR though, I think they might exist before (but I have to check). That said, I think we should merge this PR first because the others will trigger the auto cherry-picking which might or might not fail. |
Also, I don't really see these toolbar issues as bugs, it's just different behavior for toolbar. |
I can do that. |
Co-authored-by: youknowriad <youknowriad@git.wordpress.org> Co-authored-by: getdave <get_dave@git.wordpress.org> Co-authored-by: ajlende <ajlende@git.wordpress.org> Co-authored-by: draganescu <andraganescu@git.wordpress.org> Co-authored-by: ntsekouras <ntsekouras@git.wordpress.org> Co-authored-by: talldan <talldanwp@git.wordpress.org> Co-authored-by: richtabor <richtabor@git.wordpress.org>
Fix included here. |
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.
I tested some of the obvious things, and they're looking good.
This is the manual backport of this PR #66039 and #66243 into the wp/6.7 branch.
Most conflicts were due to the existence of a the special "select mode" toolbar in 6.7.