-
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
List View: Try allowing users to drag to one level up the hierarchy #49498
Conversation
Size Change: +138 B (0%) Total Size: 1.37 MB
βΉοΈ View Unchanged
|
Flaky tests detected in aa4123b. π Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/4664732606
|
d466990
to
9d47b67
Compare
9d47b67
to
aa4123b
Compare
After hacking away at this a bit more, I have an idea for a more accurate way to do this, that will also allow dragging to all levels of the block hierarchy. I'll close out this PR for now, and will continue work over in #49742 |
What?
π§ π§ π§ π§ This is just a WIP PR for now β it is buggy and doesn't quite work yet! π§ π§ π§ π§
An exploration into #33678 that looks at seeing if we could allow dragging just one level up the hierarchy.
Why?
It's important that folks can drag beneath a nested block. While it'd be good for folks to be able to drag to all levels of the hierarchy, this PR is exploring whether it'd be helpful to start with, to look at just allowing movement up a single level.
How?
This isn't complete yet, but the general idea is:
To-do
This doesn't work for the first level of hierarchy yet, as at the very root, there are no more parent client ids to grab. We need to add a check here β if we're at the root level, then we need slightly different logic.Implemented in 9d47b67, but it's pretty hacky and will need tidying up and to be commented.rootClientId
Testing Instructions
TBC
Testing Instructions for Keyboard
Screenshots or screencast
Coming soon...