opensourcediversity.org icon indicating copy to clipboard operation
opensourcediversity.org copied to clipboard

alt text for images in cards can be improved

Open Roshanjossey opened this issue 3 months ago • 10 comments

Now, most images in cards have alt text of format "

image link". eg: https://github.com/opensourcediversity/opensourcediversity.org/blob/main/index.html#L146 <p>This can be improved to help people who rely on screen readers</p> <p>Some guidelines for better alt text https://help.siteimprove.com/support/solutions/articles/80000863904-accessibility-image-alt-text-best-practices</p>

Roshanjossey avatar Sep 01 '25 14:09 Roshanjossey

Hi @Roshanjossey, actually the project logos are decorative, and thus the alt text should be empty like: alt="". Otherwise we would duplicate text that is right below, which we already do with the project name currently. If you check with a screenreader, it will actually read the project name twice which is not intended.

See https://www.w3.org/WAI/tutorials/images/decorative/#example-2-decorative-image-as-part-of-a-text-link

jancborchardt avatar Sep 03 '25 14:09 jancborchardt

Makes sense @jancborchardt

Roshanjossey avatar Sep 03 '25 22:09 Roshanjossey

I am a beginner and I want to contribute to opensource. Can I do this work?? Or is this work already taken?

athulmenondev avatar Sep 05 '25 20:09 athulmenondev

Hola,

He visto que este issue/PR menciona añadir una etiqueta <title>. ¿Sigue abierto este trabajo o ya lo ha tomado alguien? Me gustaría contribuir si es posible.

¡Gracias!

Ayfos avatar Sep 15 '25 16:09 Ayfos

Hi! I’d like to work on this issue. Could you please assign it to me?

FiraBro avatar Nov 05 '25 17:11 FiraBro

hello, can I please help if this mission is not already assigned? Thank you.

shirshamay avatar Nov 16 '25 18:11 shirshamay

Hello, i would love to work with this issue. if no one is assigned could i have the chance? I am a Mern stack web developer.

aman00077777 avatar Dec 05 '25 10:12 aman00077777

I CAN ALSO CONTRIBUTE SEE MY PROFILE

Sarvan-Singh7 avatar Dec 11 '25 09:12 Sarvan-Singh7

Anyone is free to pick this up and assignment is not needed. However because I just closed 2 pull requests opened back in September which were attempting this, please make sure to follow the comment above: https://github.com/opensourcediversity/opensourcediversity.org/issues/176#issuecomment-3249408158

Thanks! :)

jancborchardt avatar Dec 11 '25 12:12 jancborchardt

please check it

Sarvan-Singh7 avatar Dec 12 '25 12:12 Sarvan-Singh7

is this issue still open if open please assign it to me i would like to work on it

CodeByAfroj avatar Dec 16 '25 08:12 CodeByAfroj

@Sarvan-Singh7 I reviewed your pull request at https://github.com/opensourcediversity/opensourcediversity.org/pull/181 – please check. :)

To everyone wanting to contribute: Please don’t use AI for this change, it is much easier and much less work to review to just go through the alt tags and empty them.

@CodeByAfroj please see my above comment: https://github.com/opensourcediversity/opensourcediversity.org/issues/176#issuecomment-3641695385

jancborchardt avatar Dec 16 '25 10:12 jancborchardt

Hi @jancborchardt, Thank you for the clarification and for reviewing my pull request. I understand the point about decorative images and keeping the alt="" to avoid duplicate screen-reader output.

I’ll go through the code carefully and update the remaining alt tags accordingly, following your comment above. Please let me know if there’s anything specific you’d like me to double-check.

Thanks again for your guidance!

Sarvan-Singh7 avatar Dec 16 '25 13:12 Sarvan-Singh7

Hi @jancborchardt,

I’ve updated the PR to ensure that all decorative project card images use alt="", while keeping meaningful alt text for branding and functional icons (like the navbar logo and social links), as discussed in #176.

Could you please take another look when you have time? Thanks for your guidance!

Sarvan-Singh7 avatar Dec 16 '25 18:12 Sarvan-Singh7

Please Merge it Or tell me what i have to improve in my work ...

Sarvan-Singh7 avatar Dec 20 '25 17:12 Sarvan-Singh7