GitHub no longer uses Toasts

https://news.ycombinator.com/rss Hits: 2
Summary

Toasts pose significant accessibility concerns and are not recommended for use. Toasts are small, rectangular notifications that pop up on the screen, triggered either by a user or system behavior. They commonly show up on the bottom left or right-hand side of the viewport and disappear after a preset amount of time. While it can be tempting to use toast UI as a solution for your task, know that there are many accessibility and usability issues inherent with this pattern. Because of this, GitHub recommends using other more established, effective, and accessible ways of communicating with users. Primer offers a variety of solutions for informing users about updates. Consider: What kind of outcome you want to achieve, and How the UI will best enable a user to do that. Are you attempting to highlight a successful or unsuccessful form submission? Give feedback that an action was successfully undertaken? Alert someone that a long-running task has finished? Thinking through your use case can help select a UI treatment that not only best serves our users, but also reinforces the internal consistency of experience within the overall GitHub platform. User and system initiated actions that are direct and straightforward should be successfully completed as a matter of course. An example of this is creating an Issue, and then seeing the Issue show up on the list of Repo Issues. There does not need to be a secondary form of reinforcement to communicate success, as it should be self-evident鈥攊ncluding a toast to communicate this success may ironically lessen a sense of trust. User and system-initiated actions that require more complicated interaction may need additional feedback mechanisms to help inform the user that their request was successfully enacted. An example of this is the bulk creation of Issues. Complex interactions may benefit from a secondary form of feedback to communicate success. The manner in which this secondary feedback is expressed depends on the design, but t...

First seen: 2025-12-08 21:27

Last seen: 2025-12-08 22:27