#34595 closed defect (bug) (fixed)
Add aria-describedby to improve image/caption relationship
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 5.1 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Media | Keywords: | needs-patch |
Focuses: | accessibility | Cc: |
Description
See also #27402, where we added aria-describedby
to gallery output. Probably should have thought to deal with captioned images at the same time!
Currently, there's minimal semantic relationship between the caption and the image, and none that will reliably be recognized by assistive technology. In theory figure and figcaption
should provide a relationship, but this doesn't have adequate support.
In the HTML mode, no relationship exists at all. In HTML mode, I have doubts about the method to add aria-describedby used in this patch; str_replace
feels dirty, but it would be backwards-compatible, where adding aria-describedby to the img
element at input would only effect future images. In HTML4 mode, the relationship has to be between the img
and the description, not the container, as in the figure
relationship.
Attachments (1)
Change History (35)
This ticket was mentioned in Slack in #accessibility by joedolson. View the logs.
9 years ago
#2
@
9 years ago
An alternate approach could be to use role='group'
for this relationship. I'm not sure I like the approach, but could be convinced.
WAI on role=group: http://www.w3.org/WAI/tutorials/images/groups/#a-collection-of-images
Drupal ticket on this issue: https://www.drupal.org/node/2509700
This ticket was mentioned in Slack in #accessibility by afercia. View the logs.
9 years ago
#4
@
9 years ago
- Keywords needs-refresh added; dev-feedback removed
- Milestone changed from Awaiting Review to Future Release
- Owner set to joedolson
- Status changed from new to assigned
'aria-describedby' looks simpler and effective, also for consistency with the gallery. Moving to future release and assigning @joedolson :) Probably needs a refresh.
This ticket was mentioned in Slack in #accessibility by afercia. View the logs.
8 years ago
#6
@
8 years ago
- Milestone changed from Future Release to 4.8
Moving to 4.8 as discussed in today's accessibility meeting.
This ticket was mentioned in Slack in #accessibility by afercia. View the logs.
8 years ago
#9
@
8 years ago
For information, in our French accessibility reference "RGAA" based on WCAG, we have to give "figure" tag a "role='group'" attribute.
This ticket was mentioned in Slack in #accessibility by afercia. View the logs.
8 years ago
This ticket was mentioned in Slack in #core-media by joemcgill. View the logs.
8 years ago
#12
@
8 years ago
- Milestone changed from 4.8 to 4.8.1
Lets move this to 4.8.1 per @afercia's suggestion in Slack.
This ticket was mentioned in Slack in #accessibility by afercia. View the logs.
8 years ago
#15
@
8 years ago
See https://wordpress.org/support/topic/role-group-attribute-for-figure-tag/ for additional relevant comments.
#16
@
8 years ago
- Milestone changed from 4.8.1 to 4.9
- Owner changed from joedolson to joemcgill
- Status changed from accepted to assigned
Moving this to 4.9 for review.
This ticket was mentioned in Slack in #accessibility by afercia. View the logs.
8 years ago
This ticket was mentioned in Slack in #accessibility by afercia. View the logs.
7 years ago
This ticket was mentioned in Slack in #core by jeffpaul. View the logs.
7 years ago
#20
@
7 years ago
- Milestone changed from 4.9 to 4.9.1
Per discussion in today's 4.9 bug scrub, we're punting this to 4.9.1.
#30
@
6 years ago
- Keywords fixed-major added
- Milestone changed from 5.0 to 4.9.9
- Resolution fixed deleted
- Status changed from closed to reopened
Reopening for 4.9.9 consideration, per the latest Accessibility team bug scrub meeting.
#31
@
6 years ago
- Keywords fixed-major removed
- Milestone changed from 4.9.9 to 5.1
Moving to 5.1. The comment added in [42704] will need to be updated.
Adds aria-describedby to captioned images