-
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
New drag&drop target indicator in list view is not accessible and should be reverted to the old (and good) line #63174
Comments
Thanks for the ping and for raising the issue here @burnuser! There are lots of valid points here, and making drag and drop interfaces accessible raises a bunch of challenges that need to be balanced. For anyone else reading on, here are two videos showing the state in 6.4 and where things are at currently as of 6.6: WP 6.42024-07-08.13.45.46.mp4WP 6.5/6.62024-07-08.13.47.41.mp4There are trade-offs between the two approaches. While the blue indicator line provided a clear indicator of where a block would be dropped, it also required greater precision in finding the exact spot where a drop could occur, and didn't show what the block would look like in its target position before the user releases the mouse cursor. The current behaviour is one step along the way toward a more WYSIWYG drag and drop experience, and previews where the target block will be before the user lets go of the mouse cursor. There are other ideas for how to improve this further, currently tracked in #49563. One of those is to make the drag chip resemble the dragged item (#56539). I have an older WIP PR in #60623 that explored this idea, which gets closer to an ideal WYSIWYG state (but is still very buggy): 2024-07-08.14.03.10.mp4I didn't get a chance to continue on with that work in the 6.6 cycle, but I think something in that direction will be preferable to reinstating the blue line, as ideally I think the interface should create enough room for the dragged item that people don't need to be super precise to move an item between two other items. All that said, I'll just ping @WordPress/gutenberg-design for visibility on this one, as I know a bunch of designers have put a fair bit of thought into how the list view drag and drop behaviour should ideally work. |
Thank You for Your kind response! And I understand the WYSIWYG target. But I have a remark about precision and efficiency: WP 6.4 blue line is moved between blocks which are not moving until dropping the original block. So - in my experience - I'm very quick and precise with positioning. => Perfect and intuitive hand - eye coordination. (No extra attention necessary. Works physiologically semi-automatic.) On the other hand, all the moving blocks after 6.4 are (physiologically) a permanent eye-catcher, demanding permanent full attention and visually decoding: And hitting the right drop target is much more stressful and time consuming, because it's every time a try & guess game, when the invisible middle-line is crossed and an existing block (in a line of similar blocks) will move out of the way - up or down. So, even with better visibility to expect in the future, I can say, that for me the line worked much better and quicker as the new WYSIWYG solution. |
In the canvas, when you click the ellipsis menu and choose "move to", you get a fully keyboard accessible drag and drop experience that is similar to the previous behavior you're referring to. I could see something similar exist for the list view. That said, there's a long discussion history that got us to where we are today with regards to the instant effect of drag and drop. I won't rehash the details here, for the full context it's best to follow the breadcrumb trail of discussions and issues, perhaps you can work backwards from #56625. In that vein, this is not the doing of just one person acting alone, it's a consensus that was built in the process of discussion. |
Description
The old drag&drop target indicator in list view was a clear visible line, which indicated without any doubt where the dragged block will be positioned.
The new color-underlay is nearly invisible and completely unintuitive and unclear in prediction what to expect when reordering several blocks of the same type (e.g. paragraphs).
Please bring back good old line insert-position indicator in list view!
Or at least make the new drag&drop behaviour better:
a) clear visible (better color/contrast and/or additional line-indicator
b) identifiable (among blocks of the same type): e.g. mark the dragged block with a moving icon while moving
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
No response
Environment info
WP 6.5 (with and without Gutenberg 18.7.1) and WP 6.6 Beta
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: