liferay / clay

A web implementation of the Lexicon Experience Language
http://clayui.com
Other
208 stars 483 forks source link

ClayTreeView: keyboard alternative for drag and drop #5146

Closed marcoscv-work closed 1 year ago

marcoscv-work commented 2 years ago

Right now we can drag and drop and it works great, but we don't have alternate keys so it can be considered not accessible.

We would need:

matuzalemsteles commented 2 years ago

Oh good point about that, I think this shouldn't be a problem to implement with what we have today.

marcoscv-work commented 2 years ago

Just some points to add before starting working on this:

From a functional point of view:

From a design point o view:

image

image

matuzalemsteles commented 2 years ago

Hey @marcoscv-work sorry to comment too late here, maintaining the design will make this a little more complicated to maintain, i'm not sure this helps much when the user is interacting with the DnD using just the keyboard.

I think moving the Drag Layer wouldn't move in pixels but clicking on the arrow for example moves directly to the next drop point. I'd like to hear more from @drakonux and @emiliano-cicero about this before I go ahead with it, it would also be nice to first have something on the design side and documented before going with it.

marcoscv-work commented 2 years ago

Already implemented in Portal by Echo, if you guys want to take a look go there: Page editor -> Add fragments.

Please, we shouldn't forget this request, if any other way Echo will never use our tree / drag n drop, etc :-(

matuzalemsteles commented 1 year ago

I'm working on it but it's still in development I'm going to move it to the next release so it doesn't block the current release.

github-actions[bot] commented 1 year ago

This issue has been merged and will be released in DXP at https://issues.liferay.com/browse/LPS-175585