Implement reorderable layers by mouse#281
Conversation
|
Isn't this kind of reordering with indicators/separators what As for |
As we went through the UX review of this feature, there are some UX requirements that made native DND inapplicable. Specifically dragging only within the bounds/axis. I'm afraid that will also mean that we will have to revisit page carousel/grid once we are done with layers. |
assets/src/edit-story/components/panels/layer/useLayerReordering.js
Outdated
Show resolved
Hide resolved
assets/src/edit-story/components/panels/layer/useLayerReordering.js
Outdated
Show resolved
Hide resolved
assets/src/edit-story/components/panels/layer/useLayerReordering.js
Outdated
Show resolved
Hide resolved
I couldn't see how this fit in with regular reordering. We don't want keyboard accessibility for it (we do that elsewhere) and we aren't actually dragging anything anywhere. This custom approach seemed much simpler to use here.
I have no idea if screen readers are only for keyboard users. I would assume there are mouse users who don't see well, so want to have things read out loud to them, but I have no idea. I'd gladly remove it again, as it was a bit weird. |
dvoytenko
left a comment
There was a problem hiding this comment.
Couple of threads are still ongoing, but the PR itself is LGTM.
Thanks for clarification! I was not aware of that, so that's good to know. |
|
This PR currently has two open issues, that I don't really know how to address:
Open for thoughts here! |
|
Let‘s defer speak() to later. I‘ll try to reproduce the other thing |
This completes the work in #51 by implementing mouse-reorderable layers.
Accessibility is tricky at the moment though.
There will not be keyboard-access to the reordering, so that's not the problem (it'll be a global reorder shortcut, that they'll use), but mouse users still need to be informed for the potential drop targets as well as the result of the reordering. I've currently added some
speak()when dragging about potential drop targets, but not much more than that.Suggestions?