Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accessibility: Set alt-text for cables <canvas> area as a patch setting #928

Open
TobyKLight opened this issue Nov 27, 2024 · 2 comments
Open

Comments

@TobyKLight
Copy link
Contributor

TobyKLight commented Nov 27, 2024

Request is a field in Patch Settings menu that sets the alt-text for the cables.gl canvas. Use case is for making accessible patches when they are equivalent to an image and you can descibe their content in alt-text instead. (e.g a simple animated data vis)

(Note for a <canvas> tag alt text goes between the starting and closing </canvas> tags, unlike img alt text which uses an attribute)

@TobyKLight TobyKLight added the new label Nov 27, 2024
@TobyKLight TobyKLight changed the title Accessibility: Set alt-text for cables <canvas> area Accessibility: Set alt-text for cables <canvas> area as a patch setting Nov 27, 2024
@pandrr
Copy link
Member

pandrr commented Nov 28, 2024

Screenshot 2024-11-28 at 09 12 48

on dev.cables.gl we now have a innerHTML op, you can use this to set the innerText of the canvas to a value, that should solve it

in general: patch settings are more about the patch on cables.gl website. we need to solve those things in operators or cables core, otherwise they won't be in the standalone, or would not work with, e.g webgpu etc.

@steam0r
Copy link
Collaborator

steam0r commented Dec 17, 2024

this made it to cables.gl with the latest release, just now!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants