Hacker News new | ask | show | jobs
by g_b 2839 days ago
I wish this full-screen modal feature would disappear. I've lost track on the number of times I pressed back to close a modal on mobile because I thought it was a new page.

Please make it clear that a dialog is a dialog.

2 comments

This is interesting, in a native app the modal would close but unintuitively most sites don't push modals to history.
In a native app, such modal would be pushed on the activity stack (on Android; I assume iOS has a similar pattern). It would essentially be a native equivalent of a new page. Modern web developers are, for some reason, more afraid of having multiple pages than they are of black death.
iOS does not push modals onto the navigation stack by default.
To be fair, iOS doesn't have a universal 'back' button, so you wouldn't reach for it to exit a modal anyway.
Sure, but the general guideline for modals is to have a "Cancel" or "Done" bar button item somewhere to exit. This is a different action than popping a view controller off the navigation stack.
Thanks for this response, this is very helpful. I will update post with this concern