alphagov / govuk-design-system-backlog

GOV.UK Design System Community Backlog
31 stars 2 forks source link

Confirm an action #9

Open govuk-design-system opened 6 years ago

govuk-design-system commented 6 years ago

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.

joelanman commented 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.

tameemsafi commented 6 years ago

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

dashouse commented 6 years ago

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

stevenaproctor commented 6 years ago

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.

dankmitchell commented 5 years ago

GOV.UK Notify have this pattern -

Screenshot 2019-03-08 at 19 57 29
edwardhorsford commented 2 years ago

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
Sam-FMMS commented 1 month ago

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?