All articles
Design & UXNovember 24, 2026 6 min read

Disabled Buttons Are a UX Smell: Design Patterns That Respect the User

Grayed-out submit buttons feel polite but punish users. Here's a breakdown of why disabled states fail, when to keep them, and the patterns we reach for instead.

A disabled submit button feels like good manners. It says "you're not ready yet." In practice, it's one of the most hostile things a form can do — silently, with no explanation, and often with contrast so low that screen readers and low-vision users can't even tell it's there. Disabled buttons are a UX smell, and most of the time there's a better pattern waiting.

Why we reach for disabled in the first place

The instinct is defensive. If the form isn't valid, don't let them submit. If the request is in flight, don't let them double-submit. If the user hasn't accepted the terms, don't let them continue. All reasonable goals. The problem is that disabled is a blunt instrument being asked to solve three different problems at once:

  1. Prevent an invalid action.
  2. Communicate why the action is unavailable.
  3. Prevent duplicate or racing actions.

One attribute, three jobs, and it does none of them particularly well.

What disabled actually does

When you set disabled on a button, the browser does several things at once:

<button type="submit" disabled>Create account</button>
  • Removes it from the tab order.
  • Blocks pointer and keyboard events, including click, focus, and crucially mouseenter — so tooltips explaining why it's disabled won't fire.
  • Exposes it to assistive tech as aria-disabled="true" implicitly, but without any accessible description of the reason.
  • Applies the browser's default dimmed styling, which almost never meets WCAG contrast ratios.

That last point matters. WCAG 2.2 doesn't require disabled controls to meet 4.5:1 contrast, which teams read as permission to make them invisible. The result: users with low vision literally cannot see the primary action on your page.

The three failure modes we see in audits

In client audits over the past couple of years, the same three stories keep showing up.

1. The "why won't it submit?" loop

User fills a signup form, hits what they think is submit, nothing happens. The button is disabled because the password field needs one more character. There's no visible error, no focus shift, no announcement. They poke every field, give up, and bounce. Analytics shows a drop-off at the final step — but the real failure happened when the button quietly refused to respond.

2. The accessibility regression

A design system ships a beautiful new button. Enabled state: 7:1 contrast. Disabled state: #D1D5DB on white, which is roughly 1.6:1. A screen reader user tabs through the form and lands... nowhere, because the disabled button has been skipped entirely. They have no way to know a submit button exists, let alone why it's unavailable.

3. The race-condition double submit

Ironically, the pattern most teams use disabled to prevent — double submission — still happens. The button is disabled after the click handler fires, but a fast double-click, or a slow network with a user hitting Enter twice, can both squeeze through. The real fix is idempotency on the server and a loading state on the client, not the disabled attribute.

The patterns we use instead

There's no single replacement, because disabled was pretending to solve multiple problems. Here's what we reach for by problem.

Pattern A: Enabled-but-guarded (for validation)

Leave the button enabled. When clicked, run validation, focus the first invalid field, and announce the error. This is how native HTML forms behave by default, and it's almost always better than a disabled button.

function SignupForm() {
  const [errors, setErrors] = useState<Record<string, string>>({});
  const formRef = useRef<HTMLFormElement>(null);

  function handleSubmit(e: React.FormEvent) {
    e.preventDefault();
    const result = validate(new FormData(e.currentTarget));
    if (!result.ok) {
      setErrors(result.errors);
      // Focus the first invalid field so keyboard users land there
      const firstInvalid = formRef.current?.querySelector<HTMLElement>(
        `[name="${result.firstErrorField}"]`
      );
      firstInvalid?.focus();
      return;
    }
    submit(result.data);
  }

  return (
    <form ref={formRef} onSubmit={handleSubmit} noValidate>
      {/* fields with aria-invalid and aria-describedby wired up */}
      <button type="submit">Create account</button>
    </form>
  );
}

Pair this with inline validation on blur — not on every keystroke, which feels aggressive — and users get feedback where the problem is, not where the button is.

Pattern B: Loading state (for in-flight requests)

For preventing double submits, show that the action is in progress. The button stays focusable and announces its new state, which is exactly what aria-busy is for.

<button
  type="submit"
  aria-busy={isSubmitting}
  aria-disabled={isSubmitting}
  onClick={(e) => {
    if (isSubmitting) e.preventDefault();
  }}
>
  {isSubmitting ? (
    <>
      <Spinner aria-hidden="true" /> Creating account…
    </>
  ) : (
    'Create account'
  )}
</button>

Key distinction: aria-disabled instead of the disabled attribute. The button stays in the tab order, stays hoverable, stays announced — but the click handler no-ops while busy. Combine with server-side idempotency keys so even a successful race doesn't create two accounts.

Pattern C: Progressive disclosure (for conditional flows)

If a button genuinely shouldn't exist yet — say, a "Pay now" button before the user has picked a plan — don't show a disabled version. Don't render it at all. A ghost control that might become real is cognitive overhead. Render it when the preconditions are met and let layout shift do the talking (with a reserved space so the page doesn't jump).

Pattern D: Explained unavailability (for permissions)

When the action is unavailable for reasons the user can't fix in context — insufficient permissions, feature-flagged off, trial expired — show the button, style it clearly as unavailable, and explain why on hover and focus. This is one of the few legitimate uses of a visually muted control, but it must still be focusable.

<button
  type="button"
  aria-disabled="true"
  aria-describedby="upgrade-hint"
  onClick={() => openUpgradeModal()}
  className="opacity-60 cursor-help"
>
  Export to CSV
</button>
<span id="upgrade-hint" className="sr-only">
  Available on Pro and above. Click to see upgrade options.
</span>

Notice the click still does something useful — it routes to the upgrade path. A disabled button with no explanation and no escape hatch is a dead end. A guarded button that opens the right door is a conversion opportunity.

Encoding this in your design system

If you own a design system, the fix isn't a blog post telling designers to be nicer. It's making the right pattern the easy one.

Rename the token

Stop calling it button--disabled. Call it what it actually represents:

  • button--busy — in-flight, aria-busy, non-interactive
  • button--unavailable — explain why, still focusable
  • button--locked — permission-gated, routes to unlock flow

Naming forces intent. A developer who has to pick between three semantic options will think about which one applies, instead of reflexively typing disabled.

Set contrast floors

Even for unavailable states, hold a minimum of 3:1 contrast against the background for the text, and give the control a visible border so its hit area is obvious. WCAG doesn't require it, but your users do.

Audit with a lint rule

A simple ESLint rule can flag <button disabled> in your codebase and suggest the alternatives. We've shipped this on a few design system repos and it catches more issues than any Figma review. Pair it with a Storybook check that fails if any button variant drops below your contrast floor.

If you want to go deeper on how design tokens flow from Figma into Tailwind and React, we've written about our workflow on the 72Technologies blog.

When disabled is still the right call

To be fair: disabled has legitimate uses. Toggle buttons that genuinely cannot change state in the current mode. Form controls inside a section that's been explicitly collapsed or deactivated. Bulk action buttons when zero rows are selected — though even there, an enabled button that says "Select rows first" and flashes the checkbox column is often better.

The test we use: If the user clicks this and nothing happens, will they understand why within two seconds? If no, don't disable it. Guard it, explain it, or remove it.

Where we'd start

Pick your top three forms by traffic — signup, checkout, and the most-used settings page. Grep the codebase for disabled= on any button inside those forms. For each one, ask which of the three problems it was really solving, and swap in the matching pattern: enabled-but-guarded for validation, aria-busy for in-flight, progressive disclosure for conditional. Measure completion rate for two weeks. In our experience, signup flows see a meaningful lift and support tickets about "the button doesn't work" quietly disappear.

#UX#Accessibility#Design Systems#Forms#Frontend

Want a team like ours?

72Technologies builds production software for the kind of teams who actually read this blog.

Start a project