open-ui
open-ui copied to clipboard
Toasts/Notification Research
Hey all,
Schalk and I are going to use this ticket to start our discussion for Toasts.
We'll add our research to the google doc.
If we all decide that toasts should be part of the OUI spec, we'll start working on a proposal
The Open UI Community Group just discussed Toast/Notification Request for Stage 0
, and agreed to the following:
-
RESOLVED: Toast/notification/message to go to Stage 0
The full IRC log of that discussion
<gregwhitworth> Topic: Toast/Notification Request for Stage 0<gregwhitworth> github-bot help
<gregwhitworth> https://github.com/openui/open-ui/issues/383
<gregwhitworth> Github: https://github.com/openui/open-ui/issues/383
<andrico1234> q?
<gregwhitworth> andrico1234: I would like to get this into Open UI and before I spend too much time on this I'd like to get support into Open UI
<gregwhitworth> andrico1234: https://docs.google.com/document/d/1TYvACxInNMSjf7WQTkG9qEJKYbW8ZMrk5xmEpeXXH4M/edit
<gregwhitworth> andrico1234: there was an investigation into std-toast but that has been abandoned
<gregwhitworth> andrico1234: I looked at the HTML spec and there is a dialog component and began thinking about the API and how varied toasts are we would give a lot of control to the author
<gregwhitworth> andrico1234: and then the ARIA spec are quite aligned to the behavior of a toast and status & alert roles
<gregwhitworth> andrico1234: how do people feel about moving this to Stage 0 for Open UI?
<davatron5000> q+
<una> Stage 0: https://open-ui.org/working-mode
<bkardell_> q+
<gregwhitworth> ack davatron5000
<gregwhitworth> ack davatron
<gregwhitworth> davatro: I think it woudl be good to figure out what happened to std-toast
<gregwhitworth> davatron: but I think with the deprecation of alert() confirm() it fits into that place as well
<masonf> q+
<gregwhitworth> davatron: and then the third thing is maybe why dialog is not a good fit
<gregwhitworth> ack bkardell_
<gregwhitworth> bkardell_: I have similar feels to Dave
<gregwhitworth> bkardell_: like why this and why this is different
<gregwhitworth> bkardell_: there is pre-existing discussion around the component
<una> q+
<gregwhitworth> bkardell_: I don't see any issue to pursue the sentiment
<gregwhitworth> andrico1234: half the discussion was down to the naming
<gregwhitworth> andrico1234: I'm not married to the name
<una> q-
<gregwhitworth> andrico1234: I can't answer the questions just yet but I'll look into what you and davatron brought up
<gregwhitworth> bkardell_: I think message is a good name
<gregwhitworth> ack masonf
<gregwhitworth> masonf: the std-toast mostly because of naming and I think it was the direct cause of changing the name from I2I and I2E
<gregwhitworth> masonf: it will be important to express what is different of this from popup and dialog
<gregwhitworth> andrico1234: there is one thing I'd like to double back on as it relates to alert() and confirm()
<melanierichards> q+
<gregwhitworth> andrico1234: did you mean that Chromium isn't using this or that there is interest in this component within the platform due to its removal
<gregwhitworth> bkardell_: yeah it's primarily about phishing
<gregwhitworth> davatron: yeah I was saying that toast could be a replacement for those
<gregwhitworth> melanierichards: I wanted to noodle on the difference between popup and toast
<gregwhitworth> melanierichards: there are 3 things; the semantic alerty-ness of toast
<gregwhitworth> melanierichards: there is light dismissal, but you could change the popup to make it canceleable
<gregwhitworth> melanierichards: the way that popup is that it's chained together. The key difference there is that you may have more than one toast on a screen
<masonf> Darn, now I'm hungry too.
<gregwhitworth> RESOLVED: Toast/notification/message to go to Stage 0
I did want to draw your attention to the research that Jack did in the (abandoned) stds-toast effort - if you take a look at https://github.com/jackbsteinberg/std-toast/tree/master/study-group, you'll see a lot of comparison across different packages and UI-toast-semantics that you might find helpful.
There hasn't been any discussion on this issue for a while, so we're marking it as stale. If you choose to kick off the discussion again, we'll remove the 'stale' label.