-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Hide separators for currently dragged section in Zoom Out #67638
Hide separators for currently dragged section in Zoom Out #67638
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: +63 B (0%) Total Size: 1.83 MB
ℹ️ View Unchanged
|
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.
Experience wise this works better.
Next it would be cool to try dragging the pattern and having it "move" a shadow with the cursor, rather than show the "Drop pattern" placeholder.
CleanShot.2024-12-05.at.21.11.05.mp4
@richtabor I think @ellatrix is working on something like that in #67470. |
a4c9795
to
b8b76b7
Compare
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.
This is testing well for me, nice work!
The code changes look good to me, as well. The need to check for the previous sibling makes sense, otherwise, you can still drag the block into its current location when dragging towards the previous sibling.
Flaky tests detected in b8b76b7. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/12198503164
|
1f4d5b4
to
ec0a90b
Compare
ec0a90b
to
f38e063
Compare
What?
Hide the drag and drop separators for currently dragged section in Zoom Out.
Closes #67567
Why?
See #67567
How?
Hides the Zoom Out Separator if
The sibling requirement is a product of the fact that dropzones appear below each section and the previous block's dropzone can be activated by moving near the top of the current block when dragging.
Testing Instructions
Testing Instructions for Keyboard
Screenshots or screencast
Screen.Capture.on.2024-12-05.at.14-50-15.mp4