News for hackers. Stuff that matters.
Re:Forms in modals: UX case by schwartzworld on Friday August 05, 2022 @01:17PM (#32359048)
There's not reason you can't have a "dedicated page" with a back button (or even respecting the real back button) in an SPA. Modals are created by lazy designers, devs only implement them.
Re:Forms in modals: UX case by defanor on Friday August 05, 2022 @01:34PM (#32359270)
Indeed, my bad, and it makes more sense upon re-reading it with just SPAs in mind (instead of picturing/comparing a modals-heavy SPA and a regular bunch of pages). I just have a strong association of modals with SPAs, but they don't necessarily go together.
Re:Forms in modals: UX case by collaborative on Friday August 05, 2022 @01:20PM (#32359086)
Actually there is. HTML5 Canvas state gets lost. It's the only case, but I know from experience that it can be very significant depending on the application
Re:Forms in modals: UX case by deckard1 on Friday August 05, 2022 @01:40PM (#32359338)
you're still in the SPA. You generally need some sort of painters algorithm to repaint the canvas anyway. When the canvas comes back you would just repaint it from JS memory.

Canvas in particular has issues web devs have to deal with beyond their "normal" duties. Accessibility is simply not even a thing in canvas. Google Docs had to implement an entire parallel invisible DOM structure to emulate what they draw on the canvas when they were switching over to the canvas. And, of course, that DOM structure has to be in sync with canvas.

Re:Forms in modals: UX case by collaborative on Friday August 05, 2022 @04:56PM (#32361878)
Sure. But in that case I think a modal makes more sense. A page with a complex canvas that has state ideally should be the last page in the SPA navigation. Nothing should be able to "go back" to that page. What you describe is more a way to "go forward" to that page, since you're essentially reloading the canvas (which is fine but adds overhead in terms of state and response time)
Re:Forms in modals: UX case by Akcium on Friday August 05, 2022 @01:18PM (#32359060)
YES

Especially when the modal covers half of the page, with a form with dozens fields.