Skip to content

Fix project logo alt text: use project name, remove typo - #771

Open
GuillermoBarreto wants to merge 1 commit into
firstcontributions:mainfrom
GuillermoBarreto:fix/project-logo-alt-text
Open

GuillermoBarreto wants to merge 1 commit into
firstcontributions:mainfrom
GuillermoBarreto:fix/project-logo-alt-text

Conversation

@GuillermoBarreto

Copy link
Copy Markdown

What

The project card logo images in src/components/ProjectCard.astro all shared the same generic alt text (the framework or language that the project is build upon), which also contained a typo (build instead of built).

Why

Screen readers would announce the exact same (misspelled) alt text for all 150+ project logos, giving no information about which project's logo it is. Using each project's name makes the alt text meaningful per card.

Change

alt={name + " logo"}, e.g. "activist.org logo".

No visual change; the onerror fallback behavior is untouched.

The project card logo images all shared the same generic alt text
('the framework or language that the project is build upon'), which
also contained a typo. Screen readers would announce identical alt text
for every project's logo. This change uses each project's name for the
logo alt text instead, e.g. 'activist.org logo'.

This branch has not been deployed

No deployments
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.

1 participant