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

Enable longdesc / aria-describedby for enhanced web accessibility on images #852

Open
1 task done
Erin-Cecele opened this issue Oct 4, 2023 · 1 comment
Open
1 task done
Assignees
Labels
enhancement Proposed new feature. There are no guarantees a suggested enhancement will be included in Quire. status:triage needed Issue needs to be triaged by the Quire team. This label is automatically applied to new issues.

Comments

@Erin-Cecele
Copy link
Collaborator

Before proceeding, check to make sure there isn’t an existing issue for this idea or a similar one.

  • I have searched the existing issues and determined this is a new proposal.

Proposed change

The editorial team for GRJ has defined a need to write significantly longer alt texts for some images (particularly the very detailed illustrations.) This has also come up with some of our community members, including @lizneely.

Potential Impact

I do not think this will have any major impact on Quire's core code, although I invite @geealbers to chime in if I'm missing anything.

Supporting Information

This W3C article lays out the options fairly comprehensively: https://www.w3.org/WAI/tutorials/images/complex/

@Erin-Cecele Erin-Cecele added status:triage needed Issue needs to be triaged by the Quire team. This label is automatically applied to new issues. enhancement Proposed new feature. There are no guarantees a suggested enhancement will be included in Quire. labels Oct 4, 2023
@geealbers
Copy link
Member

I'm working on a prototype implementation of this for an upcoming project at Getty. I was originally thinking of putting long description text in an element on the page that was otherwise visually hidden and linking to it from within the longdesc attribute on the image. But while I was working, I didn't hide the description right away and I kind of like the result of exposing it for everyone. (Inspired by the National Gallery of Art's work to add image descriptions to their collection pages: https://www.nga.gov/collection/art-object-page.166425.html.) What do people think?

Screenshot 2024-02-12 at 3 30 52 PM

The text is in a simple <details> html element that has the accessible toggle open/closed built-in. The one thing I'm not sure of is if it's included like this, should we also to add a longdesc attribute to the <img> element that points to the id of the <details> element. Or, is it enough that the details element is labeled as "Image Description" and is contained within the figure caption?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Proposed new feature. There are no guarantees a suggested enhancement will be included in Quire. status:triage needed Issue needs to be triaged by the Quire team. This label is automatically applied to new issues.
Projects
None yet
Development

No branches or pull requests

2 participants