What the person is doing
The action is frequent enough that pre-action confirmation would slow users down or become automatic.
Foundation · lesson 3 of 23 · Error Prevention And Recovery
Underlying principle: Recovery begins before the error. Clear consequences, suitable constraints, preserved work, and a visible correction path reduce the cost of a mistake.
Let the action complete, preserve the exact prior state, report what changed, expose a clearly labelled recovery control, and resolve to either restored state or committed final state.
Recovery begins before the error. Clear consequences, suitable constraints, preserved work, and a visible correction path reduce the cost of a mistake.
The action is frequent enough that pre-action confirmation would slow users down or become automatic.
Let the action complete, preserve the exact prior state, report what changed, expose a clearly labelled recovery control, and resolve to either restored state or committed final state.
Normal state before the user action.
What exact state is stored so the action can be reversed?
The undo affordance appears after the action completes and names what will be restored.
The action is frequent enough that pre-action confirmation would slow users down or become automatic.
Open the working example, try its controls, and compare the behavior against the decision guidance.
The action is frequent enough that pre-action confirmation would slow users down or become automatic.
Let the action complete, preserve the exact prior state, report what changed, expose a clearly labelled recovery control, and resolve to either restored state or committed final state.
Normal state before the user action.
Undo action disappears before users can activate it.
Make the undo control keyboard reachable and programmatically identifiable.
Apple - checked
Apple frames undo and redo as expected reversal mechanisms that support recovery and safe exploration.
Google Material Design - checked
Material snackbar guidance includes undo actions for amending recent choices after the action completes.
Microsoft - checked
Microsoft confirmation guidance recommends undo, feedback, and prevention as alternatives to routine confirmations.
Apple - checked
Apple alert guidance distinguishes common undoable destructive actions from uncommon irreversible actions that need alerts.
Source trail checked: