Most active commenters
  • robin_reala(3)

113 points FragrantRiver | 43 comments | | HN request time: 1.274s | source | bottom
1. anilakar ◴[] No.46182335[source]
Scrolling that web site on mobile is really choppy.
replies(5): >>46182495 #>>46182574 #>>46182602 #>>46182642 #>>46182905 #
2. tpetry ◴[] No.46182495[source]
Perfectly smooth on iOS for me.
3. urban_alien ◴[] No.46182574[source]
VERY laggy on Android FF.
4. leosanchez ◴[] No.46182602[source]
Perfectly smooth on Android FF.
5. slig ◴[] No.46182642[source]
Exploded my mobile browser on Android.
6. robin_reala ◴[] No.46182756[source]
Meanwhile, GitHub is removing Toasts from Primer, their design system.[1] They’re next to impossible to implement in a way that retains accessibility across all needs, and if you try to restrict their usage to places where accessibility doesn’t matter so much (simple ephemeral confirmations) people misuse them anyway.

It’s notable that accessibility isn’t mentioned once in this post, or, in fact, in the component’s documentation.

[1] https://primer.style/accessibility/toasts/

replies(5): >>46183323 #>>46184146 #>>46186685 #>>46187013 #>>46189172 #
7. jmercouris ◴[] No.46182835[source]
Toasts are a great way to lose information. They are a terrible design and should not be used. They distract the user, are not dense with information, and provide no value. If a message is important enough for the user to read, it should be a dialog box.
replies(3): >>46183186 #>>46183450 #>>46183529 #
8. onion2k ◴[] No.46182905[source]
Looking at the replies to your comment makes me think that maybe the browser software isn't the only factor that impacts website perf.
9. oulipo2 ◴[] No.46183186[source]
Most of the time they're used for a quick visual confirmation that "your operation went right"
replies(2): >>46183234 #>>46184244 #
10. varun_ch ◴[] No.46183219[source]
I’m far from a UX designer but whenever I use something with toasts I feel like I don’t notice them pop up in my periphery. I think it would be better if the confirmation for an action I did just showed up wherever I performed that action (like a button changing state to a spinner and then either an error or a confirmation)
replies(1): >>46185215 #
11. jmercouris ◴[] No.46183234{3}[source]
The information that the user did something "right" should be responsive next to where the user initiated the action- not in a random corner.
replies(1): >>46183601 #
12. CharlesW ◴[] No.46183323[source]
> It’s notable that accessibility isn’t mentioned once in this post, or, in fact, in the component’s documentation.

It's a red flag for sure. That said, there's nothing preventing toasts from being accessible: https://react-spectrum.adobe.com/react-aria/useToast.html

I think it would be accurate for GitHub to say, "GitHub no longer uses toasts because we didn't want to make the effort to make them accessible or usable."

replies(3): >>46184464 #>>46185290 #>>46198911 #
13. ahallock ◴[] No.46183450[source]
Developers reach for Toasts because they're zero effort. Good user experience takes a lot of thought and you can skip all that with Toasts haha.
replies(2): >>46185316 #>>46191419 #
14. Waterluvian ◴[] No.46183520[source]
Despite being the first point made, i feel that it’s likely the name didn’t contribute to its success, and possibly worked against it. It’s not discoverable and it doesn’t tell the reader much of anything. It’s the kind of name you get away with when your product is established by other means.
15. jopicornell ◴[] No.46183529[source]
Dialogs are a great way to lose information. They are often dismissed by users that want to do their job and are interrupted by modals. Users focused on their tasks blindly dismiss dialogs.

Read the above as a critique to your strong opinion and not an opinion of mine.

My opinion is that toasts are great for notifications that can be reviewed/checked later, like chat notifications or finished background tasks.

What should be avoided, just for the same reason as modals/dialogs, is an overuse, causing fatigue.

replies(1): >>46185195 #
16. nine_k ◴[] No.46183537[source]
> While I’m sacrificing discoverability and clarity, it feels elegant to me

Sigh. So much of modern "UX design" seems to be lured by this siren call :(

17. nine_k ◴[] No.46183601{4}[source]
That control may not be visible by the time the operation completes.
replies(2): >>46184703 #>>46187073 #
18. djbarnwal ◴[] No.46183903[source]
This was a great read!
19. jgalt212 ◴[] No.46183910[source]
> It’s now downloaded over 7,000,000 times per week

Why do all these packages have so many downloads? Are all the CI / CD routines always downloading a fresh copy and not caching?

replies(1): >>46185238 #
20. chipheat ◴[] No.46184146[source]
Not too hopeful with accessibility, as it isn't pleasant to use at all with reduced motion enabled. They flicker when added and linger around when swiped away.
21. tyre ◴[] No.46184244{3}[source]
That’s why confetti exists
22. araes ◴[] No.46184406[source]
Was really hoping it was an article about making electronics out of fried bread products. "With electrodes wired to our margarine covered breadboard we were able to accomplish ... "
23. thunderfork ◴[] No.46184464{3}[source]
I think that toasts are kind of an attractive nuisance when it comes to accessibility.

They can technically, with ample constraints and a great deal of restraint, maybe end up complying with WCAG, etc., but all it takes is one developer saying "well a toast is easy" or "this isn't that important, make it auto-dismiss" and you're back in bad pattern town.

You see this with government web design systems - they have a very limited and constrained palette of patterns, because it allows for more consistency and reliable accessibility, versus having a bunch of tools that you just generally shouldn't use.

(The GitHub page linked above also makes a great case for how "making toasts accessible" isn't as simple as just having the right aria roles - lots of details the Adobe design doesn't seem to completely cover, unfortunately)

24. thunderfork ◴[] No.46184703{5}[source]
There are certainly times where this must be the case, but I think it's broadly better to have designs avoid this.
25. mhitza ◴[] No.46185195{3}[source]
Dialogs don't have to be modal, and in the parent comments context they aren't.
26. hungrymagnum ◴[] No.46185215[source]
This can be applied for a success (change the button to a green tick mark) or an unsuccessful action (change the button to a red x mark).

But what if you want to give details on why the action was unsuccessful? How do you show it near the button or change the button itself?

replies(1): >>46187220 #
27. mmarvin ◴[] No.46185238[source]
Yes, exactly that’s the case.
28. robin_reala ◴[] No.46185290{3}[source]
Spectrum’s Toast docs don’t mention how they make Toasts accessible with screen magnifiers (more widely used than screen readers based on the last WebAIM surveys I saw), so I guess they didn’t consider them?
replies(1): >>46188324 #
29. robin_reala ◴[] No.46185316{3}[source]
Zero effort, and they animate. Components that have animation baked in are drug-like in how they hook in designers and devs who are only thinking about the visual presentation.
30. toddmorey ◴[] No.46186685[source]
When async notifications arrive from background processes… How is the user notified? (Not defending toasts, just curious how to do it better.)
replies(1): >>46186710 #
31. toddmorey ◴[] No.46186710{3}[source]
GitHub seems to suggest banners or “Also consider ways to notify the user in other communication channels such as email, notifications, or a push notification in the GitHub app.”

On MacOS… emails and push notifications create… toast messages

32. samsolomon ◴[] No.46187013[source]
I’m the design leader for an enterprise software company and would love to get rid of toasts. Places where feedback is immediate don’t need them and simple forms can probably be fine with a banner or alert.

Reasons that toasts are difficult to get rid of:

- Easy for developers to implement consistently.

- Providing feedback where actions are taken on elements not on the screen (like bulk actions on a data grid, or within our workflow).

- Dense UIs where actions are taken frequently and injecting an alert or banner to be dismissed adds a ton of work for users. Also, causing the UI to jump isn’t great.

Would love to hear solutions to the above.

replies(1): >>46188414 #
33. strogonoff ◴[] No.46187073{5}[source]
Toasts are popular, but not the only option if you want to notify the user about completion of a longer-running action when the user may have already switched away from where they started it. Consider a status bar[0] instead. You can make it cute and animated, too!

[0] https://developer.mozilla.org/en-US/docs/Web/Accessibility/A....

34. chao- ◴[] No.46187220{3}[source]
>How do you show it near the button?

What stops you from placing these details you want as near as is reasonable to a button? Alternatively, placing the details near or in some container for the data/entity/element that the button relates to?

replies(1): >>46191436 #
35. MrJohz ◴[] No.46188324{4}[source]
Everyone knows accessibility is just throwing aria tags at any element you see. The more aria tags there are, the more accessible it must be, right? /s
36. MrJohz ◴[] No.46188414{3}[source]
I quite like the technique of adding a kind of "microtoast" right next to the element that's just been clicked/updated. So you'd click a button, and then directly above or below the button (or even on the button, depending on the notification), you add a bit of text saying the action has been completed. That disappears after a short delay, just like a toast. It's still got some of the accessibility issues that always come with popping up random elements in the UI, but at least it is directly next to where the user is interacting, so they can easily see that what they've done was successful, or failed, or whatever.

This works well for the last category, because it provides feedback but it doesn't need to be dismissed. But it also typically needs to be implemented afresh in each place it's used, which means more fiddly developer work.

All that says, I've lost this battle plenty of times and a lot of the stuff I've worked on ends up getting toasts in the end because they're just so much easier to implement than anything else.

37. akersten ◴[] No.46189172[source]
GitHub is also limiting the new PR review page to only show 40 comments from reviewers. Who knows which 40. If you want to see more, they have a banner that tells you to switch back to the legacy view. No idea if they'll just silently lose the feature of "seeing all your PR's comments" once the legacy view is discontinued.

So I wouldn't take any inferences from their design system as gospel.

38. wildrhythms ◴[] No.46191419{3}[source]
Zero effort, and it's basically a crude visualization of a good old message bus :P
39. wildrhythms ◴[] No.46191436{4}[source]
Good idea, but impossible to do when the user switches away from where the initial async interaction began.
40. heystefan ◴[] No.46192722[source]
Not sure where all the Toast hate is coming from in this thread, but I know two instances of Toasts that I use daily and they help a lot:

- macOS screenshots

- Linear toasts after every action (with common actions on them such as copy link)

41. bitbasher ◴[] No.46198891[source]
I always used flash messages instead of toasts. I'm not sure if flash is the right term-- it's the inline message next to or above the form/element that changed or was submitted.

I thought flashes were easier to see (not only for people with special needs). As it turns out, when you make things more accessible, everyone wins.

I went through a phase where I used toasts because it felt like everyone was using them and my product/design was "old". I happily went back to flash messages when I came back to my senses.

42. bitbasher ◴[] No.46198911{3}[source]
> It's a red flag for sure.

The first red flag was the repeated screenshots featuring Theo Browne, as if his thoughts or ideas carry any kind of authority.