-
-
Notifications
You must be signed in to change notification settings - Fork 665
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A11Y: Improve image ALT tag handling (we4authors cluster) #1503
Comments
@tisto What I found on this is, If we add image manually(not using blocks), we get image |
@nileshgulia1 good catch. I guess we want to use the image object alt tag as fallback in case the block-based alt tag has not been filled out. PR to fix this would be welcome. :) |
This issue has been discussed for Plone Classic: plone/Products.CMFPlone#2837 |
WordPress leaves the alt-tag field empty and adds a note below the alt-tag field:
Link to: https://www.w3.org/WAI/tutorials/images/decision-tree/ That's in sync with one of the recommendations from the we4authors cluster results on the ALT-tag:
Source: https://accessibilitycluster.com/main-results/text-alternative-feature-%E2%80%93-presentation |
@sneridagh I think as a first step we should:
Link to: https://www.w3.org/WAI/tutorials/images/decision-tree/
What do you think? @iRohitSingh could you imagine working on this next week? |
Status Quo
Current behavior when adding an image via the Volto editor:
Screenshot
Current behavior when adding an image manually (to a page or stand-alone):
-> no ALT tag can be specified
Screenshot
Improvement
We should make sure we have consistent handling of the ALT tag. Even though we technically make sure there is always an ALT tag filled out we might fool an automated a11y checker but this is not what we should optimize for. In most cases, the ALT tag will end up with the same as the image ID which is not helpful at all. A screen reader will read the image ID ("my-image-3234.gif") to the reader and this is not ideal.
See the w3c image decision tree for details about a11y recommendations:
https://www.w3.org/WAI/tutorials/images/decision-tree/
Key takeaways:
The main design decision we have to make is if an ALT tag belongs to the image object and stays the same when an image is embedded multiple times or if the ALT tag belongs to the image that is embedded. With the latter the same image can have multiple different ALT tags.
Sidenote: Using ALT tags should be consistent with image caption and image copyright information.
The text was updated successfully, but these errors were encountered: