States · SU-158
A busy button keeps its size and its words
Flip between the version shibroUI flags and the one it ships. The marks and callouts show what changes.
-
Cancel
jumps 88px right
-
Cancel
stays put
AT REST
CancelSave changes
SAVING
Cancel
AT REST
CancelSave changes
SAVING
CancelSaving…
-
Button width
128px → 40px, label gone
-
Button width
128px → 128px · “Saving…”
What changes
- Bad
- On save the button shrinks from
128pxto a bare40pxspinner with no words, and Cancel lurches88pxto the right. - Good
- The button stays
128pxand reads “Saving…” beside the spinner, so Cancel and everything near it stays put.
The rules
-
SU-158
A busy button keeps its size and its words. While saving, the button keeps its width, shows a spinner before the label ("Saving…"), ignores repeat clicks (
aria-disabledfor the duration) and keeps focus. Its neighbours don't move.