Rule
Dragging alternative
Dragging must have a single-pointer alternative.
- Rule
drag-alternative- WCAG 2.2
- 2.5.7 Dragging Movements (opens in a new tab) (Level AA)
- Severity
- Moderate
What it checks
Looks for elements that declare draggable="true", the explicit sign of a custom drag interaction. Images and links are skipped: the browser makes them draggable anyway, and the criterion exempts behaviour that belongs to the user agent.
Drag built only from pointer events, with no attribute, cannot be seen from the page and is not checked.
When a person decides
Every match is sent for review. Whether the same result can be reached with single clicks or taps, such as up and down buttons beside a sortable item, or a move to menu, cannot be read from markup. Dragging that is essential is excused.
Example
Sent to review
<ul>
<li draggable="true">Pay the invoice</li>
<li draggable="true">Book the venue</li>
</ul>
Not reported
<ul>
<li>Pay the invoice <button type="button">Move down</button></li>
<li>Book the venue <button type="button">Move up</button></li>
</ul>
The engine is tested against both examples.
How to fix it
Add a single-pointer way to do the same thing, such as up and down buttons beside each sortable item, or a move to action in a menu.
Check your own pages
This rule runs in every pour audit: the browser extension, the bookmarklet, the command line and the editor. Get pour, free.