Skip to content
easeweb
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.

WCAG 2.2
SC 2.1.1ASC 2.5.7AA· new in 2.2
Required by
Section 508 · EN 301 549 (EU)
Broken <li draggable="true">
The accessibility problem illustrated: Motor:How do I move this card?
01

The problem

People who can't drag, or can't see where they are dropping, can't move a card at all

02

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?

BrokenCards that move only by dragging

To do

  • Write release notes
  • Update the pricing page

Doing

  • Fix the footer links

Done

A recreated demo. The broken version is intentionally inaccessible.

03

The fix

Keep the drag, and add a way to move each card without one

Before
BrokenCards that move only by dragging
<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.
After

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
  1. 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".
  2. Make the card's title the button's description, so a screen reader says which card the button moves without changing its visible name.
  3. 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.
  4. 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.

04

Verify the fix

5 checks.

Test with: Keyboard, Mouse, Touch, Screen reader

0 of 5 checked

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.

See the service