3 ms·
Not using the standard web stuff usually means it's also an accessibility nightmare, tried using a screen reader on the demo and it doesn't work at all unfortun
by a2128 11mo ago
Not using the standard web stuff usually means it's also an accessibility nightmare, tried using a screen reader on the demo and it doesn't work at all unfortunately
- afavour 11mo agoI wonder if at any point browsers will offer a low level accessibility API for you to manually describe components. I’ve worked in the web for years and I’m a big believer but it’s also indisputable that Canvas offers more performant UI rendering than HTML when done correctly. I don’t think it should ever be used for web “documents” but web apps already bastardize HTML and CSS to achieve their aims anyway. Accessibility remains the missing component.
- shakna 11mo agoAs far as standards is concerned, that API is ARIA [0]. W3C already offers guides for accessibility and canvas. But no one who opts for canvas turns around and remembers to do their landmarks.
- afavour 11mo agoThen I’m showing my ignorance… how do you add ARIA landmarks to Canvas elements?
- kg 11mo agoYou would create transparent DOM elements in the right places with the right ARIA attributes and content, I suspect.
- afavour 11mo agoI guess that’s what I’d like to see a better API for, then. Mapping on click events for invisible elements feels like a hack.
- pmontra 11mo agoIt's HTML imagemaps from the 90s, when we could not style buttons and navbars where GIFs with links in the right places. Browsers still have the code to render them. https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/map https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/... https://caniuse.com/mdn-html_elements_map https://caniuse.com/mdn-html_elements_map
- MrGilbert 11mo agoOTH, we are still failing to provide a bare minimum for accessibility. Heck, we even needed a law (in the EU, that than needed to be translated to national law), so that companies providing crucial end user services would care about accessibility.
- thayne 11mo agoThat's possible. But it is difficult to get right, and can have poor performance if you you have many such elements.
- zigzag312 11mo ago> But no one who opts for canvas turns around and remembers to do their landmarks. Not completely true. Flutter has been adding some accessibility for web canvas target. [1] I think Avalonia is in in the make it work phase. Accessibility will probably be added in the make it right phase. [1] https://docs.flutter.dev/ui/accessibility/web-accessibility https://docs.flutter.dev/ui/accessibility/web-accessibility
- troupo 11mo ago> I wonder if at any point browsers will offer a low level accessibility API for you to manually describe components Accessibility Object Model: https://wicg.github.io/aom/spec/ https://wicg.github.io/aom/spec/ It's very slowly coming together, but it won't be rone for many years yet. Especially since what you want is Phase 3.
- charcircuit 11mo agoWhat screen reader? Over the last few years AI's ability to understand images has improved a lot.
- cebert 11mo agoThat’s not exactly fast for people who need these tools though.
- happymellon 11mo agoI can't code, I'll use an LLM to write one! I can't use your app, I'll use an LLM to read it!
- a2128 11mo agoI'm not aware of any screen reader that works by continuously feeding screenshots of user interfaces into a remote expensive image LLM, which is an absolutely insane and impractical idea for many reasons, but I used standard TalkBack on Android
- nkrisc 11mo agoSlow and expensive. You’re just proposing yet another “disability tax”.
- ludicrousdispla 11mo agoI'd just like the PgUp, PgDn, and arrow keys to reliably scroll a web page.
- lproven 11mo agoOh my yes. I want every app and every web page to be 100% navigable if I do not have a pointing device attached to my computer. And I want this enforced by law, by large rich countries. Accessibility to people with disabilities would be a good way: if your product or service is not accessible to people who can't see, can't use a mouse, or can't use their hands at all, then you can't sell it.