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

Design Pattern: dialogs, modals, toasts, errors #48

Closed
kyleledbetter opened this issue Aug 19, 2016 · 5 comments
Closed

Design Pattern: dialogs, modals, toasts, errors #48

kyleledbetter opened this issue Aug 19, 2016 · 5 comments
Labels
Milestone

Comments

@kyleledbetter
Copy link
Contributor

Dialog (Modal)

use when there’s a catastrophic error (like api error) that has a message that can be copied/pasted to give to support -OR- when you want a confirmation “Do you really want to delete this system? - Cancel/Delete"
also: when you use that confirmation, use the Verb “Discard” or “Delete” etc
so, a) Confirmation, bc) catastrophic error w/ details
spec: https://material.google.com/components/dialogs.html

image
or
image

Toast/Snackbar

if you just have a status update like “Source saved!” or “Updating…” or “User edited”, used a toast
use a toast/snackbar when the message is just an update or message that can pop in and out, that you’ll never need to copy/paste
used toasts in a non-pervasive top-right or bottom-right corner on desktop, or snackbar on top or bottom of mobile
spec: https://material.google.com/components/snackbars-toasts.html

image

Inline Errors (Forms/Fields)

Show error text only after user interaction with a field. If the user inputs incorrect data, helper text may transform into error text.
Error text should reflect your product’s color palette. It’s recommended that you use a contrasting color for error states, such as a warmer hue like red or orange.
Minimize form text to the essentials. Not every text field needs helper and/or error text.
image

spec: https://material.google.com/patterns/errors.html

@kyleledbetter kyleledbetter added this to the Alpha 0.8 milestone Sep 6, 2016
@facilpralembrar
Copy link

Hi,
For while, what do you recommend using for modal and dialogs?

Regards,

@kyleledbetter
Copy link
Contributor Author

@facilpralembrar not sure what you mean, by For while

Since dialogs are in the latest angular-material release, Covalent will have them in our next release (Alpha 0.8) around Oct 14th.

We still recommend using them only for verbose/catastrophic error messages (like: API Error! the system doesn't allow this type of upload bc of blah blah blah), or for confirmations (like: Are you really sure you want to delete your bank account? Yeah/Nope)

@facilpralembrar
Copy link

Ok. I've got it
Tks

@emoralesb05
Copy link
Contributor

Added docs in #100

@AlexJuca
Copy link

Nice work here!

emoralesb05 pushed a commit that referenced this issue Jul 23, 2019
emoralesb05 added a commit that referenced this issue Jul 25, 2019
…r mode (#48)

Also add docs for td-chart's inputs and outputs
kriswinbush pushed a commit to kriswinbush/covalent that referenced this issue Feb 20, 2020
kriswinbush pushed a commit to kriswinbush/covalent that referenced this issue Feb 20, 2020
…r mode (Teradata#48)

Also add docs for td-chart's inputs and outputs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants