Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Confirm an action #9

Open
govuk-design-system opened this issue Jan 12, 2018 · 5 comments

Comments

@govuk-design-system
Copy link
Collaborator

commented Jan 12, 2018

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 govuk-design-system created this issue from a note in GOV.UK Design System Community Backlog (Agreed) Jan 12, 2018

@joelanman

This comment has been minimized.

Copy link
Member

commented Apr 4, 2018

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.

@timpaul timpaul added the pattern label May 21, 2018

@tameemsafi

This comment has been minimized.

Copy link

commented Jul 4, 2018

@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

This comment has been minimized.

Copy link

commented Oct 24, 2018

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

This comment has been minimized.

Copy link

commented Oct 24, 2018

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

This comment has been minimized.

Copy link

commented Mar 8, 2019

GOV.UK Notify have this pattern -

Screenshot 2019-03-08 at 19 57 29

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
7 participants
You can’t perform that action at this time.