3 ms·
Then I’m showing my ignorance… how do you add ARIA landmarks to Canvas elements?
by afavour 1y ago
Then I’m showing my ignorance… how do you add ARIA landmarks to Canvas elements?
- kg 1y agoYou would create transparent DOM elements in the right places with the right ARIA attributes and content, I suspect.
- afavour 1y 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 1y 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 1y 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 1y agoThat's possible. But it is difficult to get right, and can have poor performance if you you have many such elements.