All Challenges

Accessible Reorderable Checklist (Drag & Button Move)

AngularMediumAtlassianAsanaMonday.com
45:00

Problem Brief

Build a reorderable priority checklist supporting keyboard/accessible Move Up & Move Down buttons alongside HTML5 drag attributes.

Requirements

  • Render `.reorder-item` rows inside `[data-testid="reorder-list"]` with `draggable="true"`.
  • Clicking `[data-move-up]` swaps item with `index - 1`; `[data-move-down]` swaps with `index + 1`.
  • Keep Move Up disabled on first row and Move Down disabled on last row.
Progressive Hints (1)
  • Swap array elements `[list[i], list[j]] = [list[j], list[i]]` and re-render list cleanly.
Reference Solution

Stuck? Load the verified reference code into your editor.

Automated Test Suite

1 Test Cases Ready
  • Swaps rows Up/Down and locks boundary buttonsMoving middle row Up promotes it to index 0
solution.html
Live Sandboxed Previewiframe sandbox
Starter template loaded — add your <script> logic in the editor (or open Reference Solution) to make the widget interactive.