Fix: Add alt attributes to discussion group images for accessibility #2892
+9
−9
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
[中文版模板 / Chinese template]
🤔 This is a ...
🔗 Related issue link
N/A - Accessibility improvement identified through IBM Equal Access Accessibility Checker
💡 Background and solution
When running IBM Accessibility Checker (Version 4.0.8) on the homepage, 3 violations were identified in the documentation. The discussion group QR code images in
README.mdand documentation files were missingaltattributes, making them inaccessible to screen reader users.Why is this important?
When an image contains important information, providing a text alternative makes the same information accessible through assistive technologies, such as a Braille display. When an image is decorative or redundant, providing correct markup allows assistive technologies to ignore or not repeat the information.
Solution:
Added descriptive alt attributes to all 3 discussion group images:
alt="ahooks discussion group 1/2/3"alt="ahooks 交流群1/2/3"This ensures that users relying on assistive technologies can understand these are QR codes for joining discussion groups.
Fix Before:

Fix After:

📝 Changelog
☑️ Self Check before Merge