Skip to content

Unsaved changes dialogs should use "Discard"/"Cancel" buttons

Idea

The You have unsaved changes dialog should use Discard and Cancel for the confirmation buttons. This follows the Material design guidelines and makes it more clear at a glance what will happen.

It could also be simplified to Discard changes? or such.

Discard changes?

You have unsaved changes that will be lost.

Cancel | Discard

Additional

Example dialogs "Communication → Confirmation & Acknowledgement" design guidelines

Screenshot of an Android confirmation dialog, showing "Reset filters?" with the subtext of "Your filters will reset your search history and remove all saved filters from your device.", and two buttons, "Cancel" and "Reset".

Example dialogs from the Alert Dialog design guidelines

Do

Screenshot of an alert dialog showing "Discard draft?" with "Cancel" and "Discard" buttons.

Don't

Screenshot of an alert dialog showing "Discard draft?" with "No" and "Yes" buttons.

Edited by Shane Synan