Image block accessibility improvements #42057
Labels
[Block] Image
Affects the Image Block
[Focus] Accessibility (a11y)
Changes that impact accessibility and need corresponding review (e.g. markup changes).
[Status] In Progress
Tracking issues with work in progress
What problem does this address?
Currently if the Image does not have an alt tag, but does have a caption there is no semantic link between the image and caption in order for screen readers, etc. to make use of it.
Also, if an image is linked there is no semantic association between the link and image.
What is your proposed solution?
Use an aria-describedby to point to the existing caption if there is a caption. If there is no labeling information at all, we should not insert any; we just need to ensure that if there is labeling information available, it should be associated with the image, or the link if the image is linked.
The text was updated successfully, but these errors were encountered: