3 ms·
I think it's worth calling out accessibility directly, in particular screen reader compatibility. I have yet to find a great guide to making SPAs work well wit
by simonw 4y ago
I think it's worth calling out accessibility directly, in particular screen reader compatibility.
I have yet to find a great guide to making SPAs work well with screen readers that goes beyond "read the ARIA spec" - but the ARIA spec isn't actually that useful for understanding the nuts and bolts of how you should build things so that e.g. screen readers know when the SPA has navigated to a new page, or loaded fresh content in a smaller page region.
My understanding is that MPAs are, by default, massively more accessible than SPAs. But my experience is that SPA authors rarely seem to indicate that they care.
- SparkyMcUnicorn 4y agoUsing a framework that is accessibility friendly is probably the best first step. Vuetify has gotten good feedback, with little to no additional steps for my implementations. If I'm remembering correctly, Tailwind's Headless UI, Chakra, and a few others are in the same boat. Searching for "a11y [framework]" on GitHub gives good results and some "awesome" pages that link to resources on the subject.
- 88913527 4y agoYou need to have a first-class understanding of accessibility to not have a11y problems. If your MPA framework allows you to define an "onClick" handler with a div tag, you're back in React's set of accessibility problems (versus using a button element, etc).
- sacnoradhq 4y agoDon't get me started on things React sucks at.
- robertoandred 4y agoWhat accessibility problems do you think React has? It doesn't make you put onClicks on divs.
- 88913527 4y agoPoorly phrased. React has no inherent a11y issue. People misapply it too frequently due to a lack of fundamental knowledge. MFA's cater towards building less interactive content, and more so static pages, so they are less likely to have a11y bugs. I wouldn't be surprised one bit if Angular apps failed a11y audits at similar rates to React apps. But it isn't a problem with SPA's as an architectural concept, the problem is uneducated engineers.