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 · 6 comments
Open

Confirm an action #9

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

Comments

@govuk-design-system
Copy link
Collaborator

@govuk-design-system govuk-design-system 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
Copy link
Member

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

Loading

@tameemsafi
Copy link

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

Loading

@dashouse
Copy link

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

Loading

@stevenaproctor
Copy link

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

Loading

@dankmitchell
Copy link

@dankmitchell dankmitchell commented Mar 8, 2019

GOV.UK Notify have this pattern -

Screenshot 2019-03-08 at 19 57 29

Loading

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
8 participants
@joelanman @timpaul @dankmitchell @stevenaproctor @tameemsafi @dashouse @govuk-design-system and others