Skip to content

fix(a11y): add alt text to images missing it - #748

Open
swe-sanad wants to merge 1 commit into
frappe:developfrom
SWE-Pioneers:fix/a11y-alt-text
Open

fix(a11y): add alt text to images missing it#748
swe-sanad wants to merge 1 commit into
frappe:developfrom
SWE-Pioneers:fix/a11y-alt-text

Conversation

@swe-sanad

Copy link
Copy Markdown

Problem

Four images had no alt attribute.

Fix

Preview thumbnails of a named item get a real alt = that item's title (block-template preview, page card/list previews) — matching frappe/insights' own convention for the same kind of preview card. ViewerAvatars.vue has no visible name text next to the avatar (only a hover tooltip, which isn't a reliable accessible-name source), so it gets a real alt too.

Preview thumbnails of a named item get a real alt = that item's title,
matching the pattern insights already uses for its own preview cards
(WorkbookTemplates.vue's :alt="template.title"): block-template preview,
page card/list previews. ViewerAvatars.vue has no visible name text next
to the avatar (only a hover tooltip), so it gets a real alt too.
@greptile-apps

greptile-apps Bot commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

Confidence Score: 4/5

The PR appears safe to merge, though duplicate preview alt text should be replaced with empty alt attributes.

Page and template previews repeat adjacent visible titles, producing redundant screen-reader output; the avatar change has no established defect.

Files Needing Attention: frontend/src/components/PageCard.vue, frontend/src/components/PageListItem.vue, frontend/src/components/BuilderBlockTemplates.vue

Fix all with Greploop

Fix All in Claude Code Fix All in Codex

Reviews (1): Last reviewed commit: "fix(a11y): add alt text to images missin..." | Re-trigger Greptile

width="250"
height="140"
:src="page.meta_image || page.preview"
:alt="page.page_title || page.page_name"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Avoid duplicate preview names

The image alt text repeats the visible title inside the same link, so screen readers announce page links as “Title Title”; use empty alt text for these decorative previews, including the equivalent list and block-template images.

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

Fix in Claude Code Fix in Codex

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.

2 participants