Open govuk-design-system opened 6 years ago
In general, it's more user-friendly to allow the user to undo an action:
http://alistapart.com/article/neveruseawarning
However in government there may be cases where Undo is practically impossible - for example submitting your final tax returns.
@joelanman Would it not be possible to use undo as the default behaviour instead of asking the user to confirm their action. For cases where undo is not possible you can make it clear that it is not reversible and ask the user to enter a message or their password to confirm. This is how github works when you try and delete a repo and I think it works very well.
GOV.UK Publishing platform have a "destructive" button variant
https://govuk-publishing-components.herokuapp.com/component-guide/button/destructive_button
We have something like this in our add to a list pattern.
To avoid many buttons and other problems, we take people to a separate screen that asks a normal yes-no question.
Once deleted, it is deleted. There is no undo.
GOV.UK Notify have this pattern -
Sharing two examples from the service I work on:
I just wondered if there was ever any thought to explore having an undo, even a temporarily available one some actions? It still remains the better option than only giving a warning.
For example, some products don't immediately execute the destructive action but just put the action in a queue and give the user a time-limited option to reverse the action. Is there any scope for exploring that as an option?
What
Ask users to confirm that they want to perform a serious or irreversible action. For example delete an account or cancel an application.
Why
Anything else
Not yet available.