mez,
@mez@mastodon.nz avatar

Does anyone have any good resources for making a drag-and-drop list reordering interface accessible to non-mouse users? The lists can be nested.

Using a form seems clunky:

  1. Place item at top level OR inside Item B
  2. Place at start OR after Item C

Reveal up/down arrows to keyboard focus? How do I move items in and out of nested hierarchies? How to I keep the primary list interface from not getting cluttered?

scattermutant,
@scattermutant@mastodon.nz avatar

@mez There are a couple of suggestions in items 8 & 9 on this page https://smart-interface-design-patterns.com/articles/drag-and-drop-ux/

benchaotica,
@benchaotica@mastodon.nz avatar

@mez I don't have any resources or web dev experience but I have two thoughts.

  1. Tab/shift-tab is used in word processors to increase/decrease the nesting level of bulleted/numbered list items.
  2. a command (vi) style interface. Type:
    i 6 -4 to insert item 6 before item 4,
    a 6 4 to add item 6 to the bottom of the sub-list under item 4
    m 6 -2 to move item 6 up two places.
aligorith,
@aligorith@mastodon.nz avatar

@mez
Interesting problem. AFAIK, this is not something that many UI's deal with at all, so you're not going to find too many resources.

A starting point:

  • Near the list, have a pair of normal-ish sized buttons for move up/down within list (i.e. within current level / parent)

  • Have a dropdown / "tools" menu beside these two with all the other funky variants (move in/out of group, to top/bottom, etc.)

mez,
@mez@mastodon.nz avatar

@aligorith Yeah, I often check apps like Confluence, Notion, etc. Neither allow re-ordering without drag and drop. Just “move to” (which places it inside another page). Notion’s keyboard accessibility, at least tabbing around, just isn’t there.

I’m wondering about tabbing between items and then ctrl-arrow to move it. Doesn’t solve touch yet and also requires learning hotkeys.

A tools menu may work instead, like you say, but it means more interactions to get to the command.

mez,
@mez@mastodon.nz avatar

Making this work for touch would be good too. Small arrows may be hard to hit, drag and drop requires motor skills (and a library that works with touch events 🙄)

  • All
  • Subscribed
  • Moderated
  • Favorites
  • webdev
  • khanakhh
  • DreamBathrooms
  • ngwrru68w68
  • GTA5RPClips
  • cubers
  • magazineikmin
  • mdbf
  • Youngstown
  • rosin
  • slotface
  • everett
  • kavyap
  • Durango
  • ethstaker
  • anitta
  • thenastyranch
  • cisconetworking
  • Leos
  • osvaldo12
  • InstantRegret
  • tacticalgear
  • modclub
  • megavids
  • provamag3
  • normalnudes
  • tester
  • JUstTest
  • lostlight
  • All magazines