Skip to content

Custom cover art alt text#1387

Open
alice-blue wants to merge 18 commits into
iftechfoundation:mainfrom
alice-blue:custom-cover-art-descriptions-2
Open

Custom cover art alt text#1387
alice-blue wants to merge 18 commits into
iftechfoundation:mainfrom
alice-blue:custom-cover-art-descriptions-2

Conversation

@alice-blue

Copy link
Copy Markdown
Contributor

After discussion elsewhere, this PR does the following:

  1. Add a new column to the games table to store custom cover art descriptions.

  2. Add a new field to the edit game form to add a cover art description.

  3. Add a new help window, linked from the edit game form, with guidelines for cover art descriptions.

  4. Add $alt_text parameter to coverArtThumbnail function so that alt text can be included in cover art thumbnails.

  5. On the viewgame page, add alt text to the small cover, saying: "Cover art for [Game Title]. [Custom description, if there is one.] Click for full-sized image and copyright information."

  6. On the full-sized cover art (visible when you click the small cover art on the viewgame page), add alt text saying the custom description if there is one. If there isn't a custom description, say "Cover art for [Game Title]" instead. Note: I have not been able to directly test any changes on this page, because the dev environment seems to redirect me to the live IFDB site instead.

  7. Also on the full-sized cover art page, display the custom description as part of the main text (visible to everyone, not only screen reader users) in a box under the copyright information, and say that these descriptions are contributed by IFDB members (to try to make it clearer that descriptions are not necessarily written by whoever made the art or uploaded it). If there is no custom description, show a link to add one.

  8. On the viewgame page, if there is no custom description and if the user is logged in, print a small link under the small cover art saying "add an image description." The link goes to the edit game form.

Fixes #1378. Related to #738.

alice-blue added 18 commits May 27, 2026 20:45
…test this--the dev environment takes me to the live site instead of the dev version of this page.)
…lt text and printed below it for sighted users.
…game page. On the large image page, don't hide the image description behind details tags.
…ght/upload text and make it clear that the description was not necessarily authored by the artist or the person who uploaded it
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

Successfully merging this pull request may close these issues.

On viewgame page, lack of alt text on small cover art can be an issue for screen reader users

1 participant