Make reordering work without dragging
A real three-card agenda shows how visible move controls, stable focus and clear feedback make reordering work through clicks, taps and keyboard actions.

A sortable interface can look finished as soon as its cards glide into place. The more useful review starts with a simpler question: can someone produce the same order without holding a pointer down? In a workshop agenda, moving “Sketch the options” above “Discover the problem” is the task. Dragging is one way to request that change.
For ordinary content reordering, provide a visible route using clicks or taps as well as keyboard access. W3C’s guidance treats the non-drag pointer route and keyboard operation as separate requirements; a keyboard shortcut alone does not provide a tap alternative. The dragging criterion includes exceptions for essential dragging and unmodified user-agent behavior. See the explanation of Dragging Movements.
Make the alternative part of the layout
Our three-session example keeps Up and Down beside each card. On a wide screen the controls share the row with the session name; on a narrow screen they sit beneath it. The first Up and final Down remain visible but unavailable. This makes the list’s limits discoverable and avoids moving controls around as a card reaches an edge.
Actual Chromium capture at a 390 CSS-pixel viewport. Each card exposes its own move controls; the dimmed buttons mark the ends of the list.Step controls are a practical fit for this short agenda. For a long queue, repeatedly clicking Up may be tedious. A destination picker can express “move to position 18” directly. For a board, a labeled action such as “Move to Review” can identify the destination more clearly than a direction. W3C’s G219 technique includes both stepwise controls and destination selection as examples. Read the alternatives in G219.
Choose a control around the move
Up / Down
Useful for a short, linear order.
- Keep each action close to its item.
- Name the item in the accessible button label.
- Show when the first or last position prevents a move.
Choose a destination
Consider it for long lists or named lanes.
- Let the person choose the target directly.
- Keep the destination meaningful in the current view.
- Confirm the item and its new place after the change.
Keep the moved item in reach
In the study, tabbing to “Move Sketch the options up” and pressing Enter changes the order to Sketch, Discover, Review. Focus returns to that same item’s Up button. It is now unavailable because Sketch is first. Pressing Tab reaches its Down button; Space moves the item back. The control continues to belong to Sketch even though its position changed.
Actual keyboard interaction: Enter moved Sketch to first. The outline identifies focus, the border identifies the moved card, and the message states the resulting position.That edge behavior is a deliberate implementation choice. The fixture uses aria-disabled to expose an unavailable action while retaining focus, and its move function rejects an out-of-range destination. The attribute does not stop a click handler by itself. If you use native disabled buttons instead, decide where focus should go when the just-used control becomes disabled. Test the first and last moves explicitly.
Use actual buttons for the move actions. Enter and Space are the expected activation keys in the WAI-ARIA button pattern. Our example leaves arrow keys to the browser instead of introducing another keyboard mode. That is an editorial choice for this simple list, rather than a universal sortable-widget pattern. See the Button Pattern.
Change one order, then describe the result
The drag drop-handler and both buttons call the same move function. It finds the session by its stable ID, removes it from the array and inserts it at the requested position. The rendering step updates the visible numbering and restores the initiating control when it exists. Keeping one mutation path makes it easier to compare outcomes across input methods.
function move(id, to) {
const from = items.findIndex(item => item.id === id);
if (from < 0 || to < 0 || to >= items.length
|| from === to) return;
const [item] = items.splice(from, 1);
items.splice(to, 0, item);
render(id); // Updates numbering and restores focus.
status.textContent = `${item.title} moved to `
+ `position ${to + 1} of ${items.length}.`;
}
After a move, the existing status region receives “Sketch the options moved to position 1 of 3.” We keep focus on the action rather than sending it to the message. The text names the item and destination so the outcome is understandable without comparing two arrangements. W3C explains how status messages can be exposed to assistive technology without taking focus. Read the Status Messages guidance.
The demonstration changes only local page state. In a saved planning tool, distinguish a local reorder from a confirmed save. If persistence fails, keep a clear retry or recovery path; do not report “saved” just because the cards moved. A second person editing the same queue introduces another decision about conflicts that this fixture does not implement.
Verify the result through each input route
Four routes to the same order| Action tested | Outcome |
|---|
| Drag Sketch onto Discover at 900px | Sketch is first. |
| Click Sketch’s Up button | Sketch is first; another Up does nothing. |
| Enter on Up, then Space on Down | Moves up then back; focus stays with Sketch. |
| Tap Up in Chromium touch emulation | Sketch is first without dragging. |
The click and keyboard checks ran at 900px, 390px and 320px in Chromium, Firefox and WebKit. The WebKit run used Option-Tab for sequential navigation on this Mac; the other runs used Tab. Desktop drag reached the same order in all three. The fixture had no page-level horizontal overflow at those widths. The tap check used Chromium touch emulation, not a physical phone. We inspected the status role and message text, but did not test screen-reader speech; these observations are not a complete accessibility audit. Browser keyboard-navigation settings matter when repeating this check. Apple documents Safari’s Tab and Option-Tab settings.
A review you can repeat on your interface
Name the intended move
Start with an item and destination, such as Sketch from second to first. Keep that expected order fixed across input methods.
Try clicks and taps alone
Reach the result without dragging or relying on a keyboard shortcut. Check that the alternative is visible in the narrow layout.
Repeat with the keyboard
Tab to the action, activate it, and inspect focus after the move. Check both ends of the list and the next available action.
Review feedback and persistence
Confirm the result message, test it with your target assistive technologies, and exercise save failure if the order is stored remotely.
A successful reorder is more than an animation ending in the right place. The person can choose another input route, find the item again, and understand what changed. Design those parts together before polishing the drag motion.
Back to the LOOKFILE blog