Hacker News new | ask | show | jobs
by seki285 17 days ago
It's more of a hassle and a lot of the time is a bunch of unintuitive hacks. I hope we see more mainlined APIs for the browser instead
1 comments

Like many things there is a good middle ground. HTML dialog and popover APIs are great, but combining that with javascript helps smooth out the rough edges.

A good example of this is the toast notification on this site. It is cool that we can pop up a toast using only HTML... but it can't be dismissed by anything other than user interaction.

> it can't be dismissed by anything other than user interaction.

This is as it should be. Notifications that disappear are bad accessibility https://www.scottohara.me/blog/2019/07/08/a-toast-to-a11y-to...