fix: a11y issue by removing unnecessary alternate text (#217)#218
Conversation
|
Looks like the Circle CI test is failing because of an incompatible Node.js version in the You probably want to change -- @all-contributors, can you please add @AnandChowdhary for bug reports and code? |
|
I've put up a pull request to add @AnandChowdhary! 🎉 |
Cf. #221 |
|
Checks look good, looking forward to hearing from the team! :) Link to relevant W3C example: https://www.w3.org/WAI/tutorials/images/decorative/#image-with-adjacent-text-alternative |
|
🎉 This PR is included in version 6.11.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
* chore(package): Bump all-contributors-cli * chore(test): Update snapshots
What: Fixed #217 – Removed the unnecessary alternate text from images.
Why: This is an accessibility issue. Screen readers read the name of the contributing user twice, which is incorrect. Decorative images are required to have empty alternate text, according to this W3C spec.
How: Changed alternate text attribute to
alt=""in tests and implementation.Checklist:
Depends on #221