Skip to content
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

DEP Replace react-dnd with dnd-kit #1298

Open
wants to merge 1 commit into
base: 6.0
Choose a base branch
from

Conversation

GuySartorelli
Copy link
Member

@GuySartorelli GuySartorelli commented Dec 16, 2024

This PR replaces the react-dnd with dnd-kit with like-for-like functionality, though there is a visual change.

When dragging, the element collapses and the entire element is moved along with the mouse, giving a preview of where the element will be after sorting. This is the same behaviour with other sorting in the CMS (e.g. linkfield, and the GridFieldOrderableRows component in gridfieldextensions).

I haven't implemented sorting with the keyboard like linkfield has because that was non-trivial and isn't functionality that was already available for elemental blocks. Improving accessibility to include sorting by keyboard would be a good next step in a separate card and could be accomplished in a minor release.

Issue

@GuySartorelli GuySartorelli marked this pull request as draft December 16, 2024 02:08
@GuySartorelli GuySartorelli force-pushed the pulls/6.0/dnd-kit branch 6 times, most recently from e067ba5 to 6d70016 Compare December 17, 2024 20:43
@GuySartorelli GuySartorelli marked this pull request as ready for review December 17, 2024 21:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant