jackbsteinberg/std-toast

Maybe extend Notification

Closed this issue · 2 comments

https://developer.mozilla.org/en-US/docs/Web/API/notification

It could be extended. Add more options. CSS selectors added. This could avoid feature creep.

What we've found, surveying both other platforms and various design systems, is that notifications and toasts are distinct. @kenchris summarizes this well:

the difference is that this is a temporary notification / infobar, like you see for PWAs ("new version available, press reload to refresh") or like in GMail ("Chat is currently unavailable") etc. These are not things you want an actual system notification for... They really depend on the surrounding content/situation unlike regular notifications

In particular, you do not want these ending up in your Android/iOS/Windows/macOS notifications tray; they are purely in-app.

We should cover this more clearly in the README.