Skip to content
English
States are missing42 / 71

Buttons keep their size while busy

What it's calledLoading buttonbusy stateGlossary

What goes wrong

When the label turns into "Saving changes…", the button grows and shoves its neighbour, and a second press sends the same request twice.

The fix

Keep the width, swap the label for a spinner in the same place, and ignore presses until the work is done.

Tell your AI

While a button is busy, stack the label and a 16px spinner in one grid cell so the width never changes, fade the label out over var(--ds-duration-fast) (160ms), set aria-busy="true" and ignore further presses, then show a check for var(--ds-duration-slower) (560ms) before the label returns; or install the LayQ component state-button (/registry/v1/controls-state-button.json).

  • --ds-duration-fast160ms
  • --ds-duration-slower560ms
Why AI-generated UIs all look the same: 12 rules that fix it

NK

Profile

Shown to your team

Display nameNoa K.
RoleProduct designer
CancelSaved

2 requests sent · the buttons jumped