govuk-design-system-backlog icon indicating copy to clipboard operation
govuk-design-system-backlog copied to clipboard

Confirm an action

Open govuk-design-system opened this issue 7 years ago • 7 comments

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.

govuk-design-system avatar Jan 12 '18 11:01 govuk-design-system

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 avatar Apr 04 '18 14:04 joelanman

@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.

tameemsafi avatar Jul 04 '18 10:07 tameemsafi

GOV.UK Publishing platform have a "destructive" button variant

screen shot 2018-10-24 at 15 43 37

https://govuk-publishing-components.herokuapp.com/component-guide/button/destructive_button

dashouse avatar Oct 24 '18 14:10 dashouse

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.

image

Once deleted, it is deleted. There is no undo.

stevenaproctor avatar Oct 24 '18 15:10 stevenaproctor

GOV.UK Notify have this pattern -

Screenshot 2019-03-08 at 19 57 29

dankmitchell avatar Mar 08 '19 20:03 dankmitchell

Sharing two examples from the service I work on: Screenshot 2022-08-05 at 16 19 12 Screenshot 2022-08-05 at 16 19 25

edwardhorsford avatar Aug 05 '22 15:08 edwardhorsford