Search topics
Drag-and-drop boards that only a mouse can use
Cards move between columns only by dragging, and have no focusable control that moves them any other way.
<li draggable="true"> The problem
People who can't drag, or can't see where they are dropping, can't move a card at all
A task board has three columns: To do, Doing and Done. With a mouse, you press on a card, move it across and let go over another column, and it lands there. Press Tab and focus jumps straight past the board: the cards are not in the Tab order, and nothing on them can be pressed. On a phone, the same press starts a scroll instead of a drag.
The board offers one way to move a card: a drag, which needs a press held down while the pointer travels. WCAG 2.5.7 asks for a way to do the same with single clicks or taps, unless dragging is essential, and it isn't for moving a card to a column. The cards are list items with no focusable control, so nothing works from the keyboard either (2.1.1).
Some people can drag but slowly or unreliably: a long board, a scrolling column or a small drop zone turns a short move into a long one. A board is often the only place where work changes state, so a drag-only board shuts these people out of the whole workflow, not one page.
5 of 10 groups affected
- No vision (affected)
- Low vision (affected)
- Colour vision (not affected)
- No hearing (not affected)
- Hard of hearing (not affected)
- No speech (not affected)
- Motor (affected)
- Reach, strength (affected)
- Cognitive (affected)
- Seizures (not affected)
- Limited manipulation Keyboard, switch and voice control users can't press and hold while moving, and the cards aren't in the Tab order, so no card can be moved at all.
- Without vision Screen reader users can't see the columns to aim at, and the cards have nothing they can press, so the only way to move one is a drag they can't make.
- Limited reach and strength People with tremors or weak hands lose their grip halfway, or let go over the wrong column, and have to start again.
- Limited vision With a magnifier, the target column is often off screen while the card is held, so the drop is a guess.
- Limited language, cognitive and learning abilities Nothing on a card says it can be moved, so people who don't guess that it drags never find the action.
Scanners read the markup, and nothing in it is wrong: list items need no name, and draggable="true" is valid HTML. Whether a card can move without dragging only shows when someone tries. Drag libraries that use pointer events add no attribute at all. Asked to make the board accessible, AI tools often add tabindex="0" and role="button" to the cards, which puts them in the Tab order without giving the keyboard anything to do.
Try it
Drag “Write release notes” to Done. Then put the mouse aside and try it with Tab
Can you move the card without dragging: with the keyboard alone, or with single clicks?
Broken Can you fix this?
To do
- Write release notes
- Update the pricing page
Doing
Done
The fix
Keep the drag, and add a way to move each card without one
<section class="column" data-column="todo"> <h2>To do</h2> <ul> <li draggable="true" data-card="notes">Write release notes</li> <li draggable="true" data-card="pricing">Update the pricing page</li> </ul></section><!-- Doing and Done are the same: a heading over a list of cards -->What is wrong2 points
- People who can't drag can't move a card. Dragging is the only way to move one.
- Keyboard users can't even reach a card. A list item can't take focus or be pressed.
Move buttons on each card
<li data-card="notes" draggable="true"> <span id="card-notes">Write release notes</span> <button type="button" data-to="doing" aria-describedby="card-notes">Move to Doing</button> <button type="button" data-to="done" aria-describedby="card-notes">Move to Done</button></li>…<p role="status" class="board-status"></p>How it is fixed4 steps
- Keep the drag for people who like it, and give each card a button for each column it can go to. Each button moves the card with one click, tap or key press, and voice control users can say "Click Move to Done".
- Make the card's title the button's description, so a screen reader says which card the button moves without changing its visible name.
- Give the board a status region from the start, and write into it after every move, by drag or by button, so screen reader users hear where the card went.
- After the move, offer only the columns the card is not in now, and move focus to the card in its new place.
This fixes the Before and passes 2.1.1 and 2.5.7. It suits a board with a few columns: with more than three or four, the buttons crowd the card.
Why this fix: Make a gesture a shortcut, never the only way
Both the move buttons and the Move to list pass on their own, for keyboard, pointer and screen reader users. Move buttons take one press and are the easiest to find, but they add a button per column to every card, so they suit boards with three or four columns. The Move to list takes two steps, but stays the same size however many columns there are, and can offer a position as well; choose it for larger boards. Keyboard dragging is worth adding when keyboard users ask for a faster way, but only beside one of the others.
Keep the drag. A drag is fast for people who can do it, and 2.5.7 asks for an alternative, not a replacement. Keep the drag on the card and the controls inside it, so a press on a button never starts a drag. Let a drop outside any column put the card back where it was, and run the buttons on click, not on press, so a slip can still be taken back, as buttons that act on press and can't be cancelled explains.
The controls can sit on the card all the time, or appear in a menu from a single "Move" button. A menu is tidier, but it is a second pattern to build and test; make sure it opens on click and from the keyboard, not on hover.
Focus needs care, because moving a card moves its markup.
- Re-rendered cards: frameworks often destroy the card and create a new one in the new column, so focus falls to the body. Focus the new card's first control yourself after the move.
- The last column: when a card reaches Done, the button it was focused on may no longer exist. Focus the card's first remaining control, not a button for a column it is already in.
- Undo: if a move can be undone, put the Undo control in the card or in the status line, where focus already is.
Announcing each move is a topic of its own, covered in task boards that say nothing when a card moves, but the fixes above do it, and it is worth doing. Write one status message per move, short and in the same words as the columns: "Write release notes moved to Done." Don't announce while a card is being dragged with the mouse; announce the result.
Verify the fix
5 checks.
Test with: Keyboard, Mouse, Touch, Screen reader
Record the OS, browser and assistive-technology versions, the build, the date, and the actual result of each step. Repeat after the board component or its drag library changes.
How screen readers handle role="status" and aria-describedby
Limits
This is a starting pattern, not a guarantee for every application. Reordering items within one list is covered in sortable lists that move only by dragging, or in silence, and boxes that take files dragged in from a folder in file upload drop zones with no button to choose files. Nested boards and moves that need confirmation have their own needs, and are not covered here. Drag libraries differ in how they handle focus and announcements: test the complete journey with your target assistive technology.
This is a recreated teaching example, not a finding about a named client. The code is a starting pattern: test it in your own product. No completed assistive-technology test is claimed here.
EaseWeb service
Fixed it? Keep it from coming back.
I turn guides like this one into rules your coding agents follow and checks your CI runs. Then I retest by hand with a keyboard and screen readers, periodically.