logoalt Hacker News

Building a Toast Component

107 pointsby FragrantRiverlast Wednesday at 2:51 PM36 commentsview on HN

Comments

robin_realayesterday at 4:13 PM

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/

show 5 replies
jmercourisyesterday at 4:21 PM

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.

show 3 replies
varun_chyesterday at 5:10 PM

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)

show 1 reply
araesyesterday at 7:36 PM

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 ... "

anilakaryesterday at 3:23 PM

Scrolling that web site on mobile is really choppy.

show 5 replies
Waterluvianyesterday at 5:48 PM

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.

nine_kyesterday at 5:50 PM

> 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 :(

djbarnwalyesterday at 6:36 PM

This was a great read!

jgalt212yesterday at 6:36 PM

> 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?

show 1 reply