uPortal-Attic / uportal-home

Alternative UI for Apereo uPortal (originally built for MyUW)
http://uportal-project.github.io/uportal-home/
Apache License 2.0
25 stars 27 forks source link

fix: tweak snackbars per material guidelines #808

Closed thevoiceofzeke closed 6 years ago

thevoiceofzeke commented 6 years ago

MUMMNG-4155: "As a user who recently deleted a widget from my layout, I would like the opportunity to undo my action before the snackbar disappears, so that I may undo a delete if I want."

Material guidelines for snackbars & toasts

In this PR:

Demo/screenshot

confirm-remove screen shot 2018-04-09 at 12 24 32 pm


Contributor License Agreement adherence:

thevoiceofzeke commented 6 years ago

I haven't found any specific guidance either, but both Angular Material projects use 3 seconds as the default delay before hiding. I think we have wiggle room to set it to whatever we feel is appropriate.

vertein commented 6 years ago

I do like defaults. We can see how this goes. My gut says 4 seconds is probably enough, but we can probably see how this goes with actual users.