News for hackers. Stuff that matters.
Re:From SVG to Canvas – A new way of building interactions by tadfisher on Tuesday June 06, 2023 @11:09PM (#36222392)
Genuinely asking, how do you make something like their map view accessible with so many objects and layers? I'd imagine you end up with a solution that exposes various content rectangles and ignores everything else, kind of how Google Maps does it.
Re:From SVG to Canvas – A new way of building interactions by mhoad on Wednesday June 07, 2023 @06:08AM (#36224951)
This is a problem that turns up in Flutter when they compile for the web.

The long term answer is the Accessibility Object Model spec currently under development.

The current answer is to build a replica DOM structure for accessibility purposes.

Re:From SVG to Canvas – A new way of building interactions by ygra on Wednesday June 07, 2023 @07:32AM (#36225522)
Not all of accessibility is for those who cannot see (well). WCAG also has a bunch of guidelines for loss of dexterity and other ailments:

• keyboard support (being able to navigate to all controls as needed, not being stuck in a navigation island from which there is no escape with the keyboard, etc.)

• pointing device considerations (not requiring drag unless absolutely essential, no action on mouse-down, etc.)

• not requiring the simultaneous use of mouse and keyboard (e.g. via modifier keys)

• sufficient size for buttons and other pointer targets

• the ability to suppress animations, flashing images, etc.

• the ability to control colors and contrast of things on the screen

...

Of course, something like Photoshop, Illustrator, or the visual part of Google Maps is hard to use when you cannot see, but there are so many different disabilities that some or even most accessibility guidelines can apply to pretty much any software.

Re:From SVG to Canvas – A new way of building interactions by mydriasis on Wednesday June 07, 2023 @10:02AM (#36226897)
No action on mouse down? So we need to develop applications that you can't click? Is that really part of accessibility requirements these days?
Re:From SVG to Canvas – A new way of building interactions by tylerag on Wednesday June 07, 2023 @10:15AM (#36227055)
There's a difference between mouse down and mouse up. A click needs both.
Re:From SVG to Canvas – A new way of building interactions by dingledork69 on Wednesday June 07, 2023 @10:05AM (#36226930)
Oh is that why modern American software is almost unusable? Give me back my modifier keys and compact UIs