Open the console

Reading Order of Checklist Steps for Screen Readers

Visual order and DOM order drift apart over time. Here's how to keep an onboarding checklist announced in the same order sighted users see it.

Reading Order of Checklist Steps for Screen Readers

An onboarding checklist usually starts life with the DOM order matching the visual order: step one is the first child in the markup, and it's also the first thing on screen. That alignment is easy to break later, and when it breaks, sighted users and screen reader users stop seeing the same checklist.

Why the two orders drift apart

The drift is rarely intentional. A few common causes:

A step gets reordered with CSS (order in a flex or grid container) instead of moving its markup. The visual position changes; the DOM position, which is what assistive technology reads, does not.

Steps are rendered conditionally and the list is rebuilt from an array that gets re-sorted client-side for display purposes (say, incomplete steps first) without the underlying data order changing. The visual sort and the source order are now two different things.

A step is added late — a new integration surfaces a fourth step after three already exist — and it gets appended to the array but the design calls for it to sit second, so it's visually moved with a flex order property.

In every case, a sighted user scanning top to bottom sees one sequence. A screen reader user tabbing or using a rotor hears a different one. The checklist technically works for both audiences in the narrow sense that nothing is broken, but they are not having the same experience, and a step described as "next" to one group might be "third" to the other.

Why this matters for a checklist specifically

A checklist is sequential by nature. Steps often depend on each other, or are at least presented as a progression. A screen reader user who hears step three before step one has lost the thing that makes a checklist useful: knowing what to do next. A generic content block doesn't have this problem because order rarely carries meaning there. A checklist does.

This is also a harder bug to catch than most accessibility issues, because it has no visual symptom. The page looks correct. Nothing is hidden, nothing is low-contrast, nothing is unlabeled. The only way to notice is to listen to the page the way a screen reader does, which most manual QA passes skip entirely.

Keep the DOM as the single source of truth

The fix is less a code change than a constraint: the DOM order is the order. Resist reordering visually with CSS unless the DOM order already matches what you want announced. If a step needs to appear second for a specific cohort — reduced steps for contractor accounts, for instance — sort the underlying array before rendering, not the rendered nodes after.

If you do need the visual and reading order to diverge for a real design reason (rare, but it happens with multi-column layouts), aria-flowto exists to tell assistive technology what should come next, but it's a stopgap with inconsistent support across screen readers. Treat a mismatch that needs aria-flowto as a sign the layout should probably change instead.

A quick check you can run today

Open the checklist with a screen reader — VoiceOver on Mac (Cmd+F5), NVDA on Windows (free) — and navigate it with the rotor or the virtual cursor, not with Tab alone, since Tab only hits interactive elements and will skip static step labels. Listen for the order the steps are announced in. Compare it to what you see on screen. If they match, you're done. If they don't, grep your checklist component for order:, flex-order, or any client-side .sort() call that runs after the array is built from the API response, and move that sort earlier, into the data layer.

// before: sorted after the fetch, for display only
const displaySteps = [...steps].sort(byCompletionFirst);

// after: sort once, where the data is built, so DOM order
// and announced order are the same thing
const orderedSteps = buildStepsInIntendedOrder(rawSteps);

What to measure instead of guessing

There's no published figure for how many onboarding checklists have this specific drift — it isn't the kind of thing that gets benchmarked, and a number invented for this post wouldn't mean anything. What you can measure on your own checklist: pull up your component's render function and check whether order or flex-order appears anywhere near the step list, and whether any array powering the display is sorted separately from the array fetched from the server. That's a five-minute code search, not a user study, and it tells you directly whether this bug exists in your implementation.

If your checklist's steps come from an API and you want the ordering to live in one place rather than scattered between the backend and a client-side sort, see the docs for how steps are ordered in the response. For the related question of what happens when steps need to show or hide per account, the piece on permission-based step visibility covers how to keep that filtering consistent too.

Try it on your app