PolymerElements / paper-toast

A Material Design popup toast
53 stars 29 forks source link

Pattern to create multiple toast #81

Closed NicolasRannou closed 8 years ago

NicolasRannou commented 8 years ago

I would like to have several toast display on top of each other.

Right now if I create 2 toasts and show them, the first toast get hidden by the second toast.

What I would like it the second toast to push the existing toast up. screen shot 2016-07-19 at 2 45 34 pm

Ideally my toast should also be able to push a fab button up too (like in inbox). Is such behavior supported?

valdrinkoshi commented 8 years ago

Hi @NicolasRannou, this behavior is by design, as mentioned in the Material design: Snackbars & toasts:

Show only one snackbar on screen at a time.

valdrinkoshi commented 8 years ago

You could pile the messages rather than the toasts, e.g. http://jsbin.com/cuvova/1/edit?html,output