Skip to content
srihanu
All case studies

UX & Accessibility Remediation in a React Quote Flow

38% of users quit at step 3. The analytics never said why.

Client
Consumer insurance provider (anonymised)
Product
Five-step online car-insurance quote — React, Next.js, React Hook Form
Standard
WCAG 2.2 AA + Nielsen's 10 heuristics
Timeline
5 weeks — 1 audit, 3 remediation, 1 validation

About this case study: it reflects how we run engagements of this kind. The client is anonymised and the figures are illustrative until clients approve publication.

The challenge

A consumer insurance provider's online car-insurance quote lost more than a third of its users at step 3 of 5. The product team had heatmaps, session replays and theories — copy, price shock, form length. What they didn't have was a way to separate the UX problem from the accessibility problem from the engineering problem. Then a screen-reader user's complaint reached the support team: they couldn't get past “About your car” at all.

The approach

We audited each screen against Nielsen's ten usability heuristics and WCAG 2.2 AA in the same pass, so a single defect could carry both tags. That turned out to be the point: almost every accessibility barrier on step 3 was also friction for everyone else. Remediation was delivered as pull requests against their React component library and the quote flow itself — not as a report.

  1. Funnel first

    Analytics and session replays located the drop-off before any scanning — 38% of users quit on step 3, “About your car”.

  2. Dual audit

    Each screen reviewed against WCAG 2.2 AA and Nielsen's heuristics in one pass, so one defect carries both tags.

  3. Real users, real AT

    Keyboard-only, NVDA + Chrome and VoiceOver on iOS, plus moderated sessions with two screen-reader users and three sighted users on mobile.

What we found

Audit findings: issue, WCAG success criteria, severity, and ux heuristic
#IssueWCAG SCSeverityUX heuristic
1Step changes didn't move focus — screen readers stayed silent on the old “Continue” button2.4.3, 4.1.3CriticalVisibility of system status
2Custom <div> “Vehicle make” dropdown — no role, unreachable by keyboard2.1.1, 4.1.2CriticalConsistency & standards
3Errors shown only as red borders on blur — no text, no summary1.4.1, 3.3.1CriticalRecognise, diagnose & recover from errors
4Session expired after 15 minutes with no warning, wiping every answer2.2.1HighError prevention
5Date of birth split into three unlabelled inputs with no format hint1.3.1, 3.3.2HighRecognition rather than recall
6Help tooltips on hover only, vanishing before they could be read1.4.13HighHelp & documentation
7Sticky price footer covered the focused field on mobile2.4.11HighVisibility of system status
818px radio-card targets; focus ring clipped by overflow: hidden2.5.8, 2.4.7MediumError prevention
9Live price updated silently after each answer4.1.3MediumVisibility of system status

Key insight: All three critical failures sat on step 3 — the same screen as the drop-off. The barrier for screen-reader users was friction for everyone: the dropdown, the date of birth and colour-only errors were also where sighted mobile users stalled in the replays.

How we fixed it

  1. Focus that follows the user

    Every step change now moves focus to the new step's heading, so screen readers announce where the user has landed and keyboard users don't start from the top of the page.

    use-step-focus.ts
    export function useStepFocus(step: number) {
      const headingRef = useRef<HTMLHeadingElement>(null);
      const isFirstRender = useRef(true);
    
      useEffect(() => {
        if (isFirstRender.current) {
          isFirstRender.current = false; // don't steal focus on page load
          return;
        }
        headingRef.current?.focus();
      }, [step]);
    
      return headingRef;
    }
    
    // <h2 ref={headingRef} tabIndex={-1}>Step 3 of 5: About your car</h2>
  2. Native first

    The first rule of ARIA: don't use it if HTML already does the job. The 400-line custom dropdown for about 60 vehicle makes became a native <select> — keyboard, screen-reader and mobile pickers for free. Only the 4,000-item model list kept a custom control, rebuilt to the ARIA 1.2 combobox pattern with type-ahead.

  3. Errors people can find and fix

    On submit, a summary lists every problem as a link to its field and takes focus. Each field gets a text error tied to it with aria-describedby and aria-invalid — colour now only reinforces the message.

    error-summary.tsx
    <div ref={summaryRef} tabIndex={-1} aria-labelledby="error-summary-title">
      <h2 id="error-summary-title">
        There {errors.length === 1 ? "is 1 problem" : "are " + errors.length + " problems"}
      </h2>
      <ul>
        {errors.map((e) => (
          <li key={e.field}>
            <a href={"#" + e.field}>{e.message}</a>
          </li>
        ))}
      </ul>
    </div>

    The date of birth became a <fieldset> with a <legend>, a visible format hint and autocomplete="bday-day" / "bday-month" / "bday-year" — browsers can now fill it in one tap.

  4. Keeping focus in view

    WCAG 2.2's “Focus Not Obscured” was failing because the sticky price footer sat on top of whichever field had focus. One CSS rule fixed it, and a token raised every tap target to at least 24×24 px.

    quote-flow.css
    html {
      /* Browsers keep focused elements clear of the sticky footer */
      scroll-padding-bottom: calc(var(--quote-footer-h) + 1rem);
    }
    
    :root {
      --target-min: 24px; /* WCAG 2.5.8 floor — radio cards use 44px */
    }
  5. Status without noise

    The live price now sits in a polite live region, debounced so it's announced once the user settles on an answer rather than on every keystroke. Hover tooltips became toggletip buttons that stay open until dismissed with Escape.

  6. Time to finish

    Two minutes before the session expires, an accessible dialog offers “Stay signed in”. Answers are saved as the user goes, so a timeout no longer means starting again.

Keeping it fixed

  • @axe-core/playwright walks the full quote journey — every step, every error state — on every pull request.
  • eslint-plugin-jsx-a11y in strict mode on the form components, so missing labels fail locally before they reach review.
  • A keyboard and screen-reader check added to the team's definition of done for any change to the quote flow.

Results

Results before and after remediation
MetricBeforeAfter
Step-3 drop-off38%17%
Quote completion rate41%56%
axe critical and serious violations640
Completed with a screen reader (NVDA, VoiceOver iOS)0 of 22 of 2
Quote-form support callsBaseline−31%

Step-3 drop-off fell from 38% to 17%, overall quote completion rose from 41% to 56%, and the flow is now completable end to end with NVDA and with VoiceOver on iOS. The same fixes that removed the barriers removed the friction — for every user.

Takeaways

  • The accessibility barrier and the UX drop-off were usually the same defect, seen from two angles.
  • Native first. A <select> beat 400 lines of custom dropdown on every measure.
  • Focus management is the backbone of any multi-step flow.
  • Measure accessibility in the funnel, not just the scanner — that's where the business case lives.

Stack

  • React 18
  • Next.js
  • React Hook Form
  • WCAG 2.2 AA
  • Nielsen heuristics
  • @axe-core/playwright
  • eslint-plugin-jsx-a11y
  • NVDA & VoiceOver

Facing something similar?

Twenty minutes is usually enough to know whether we can help.