Problem/Motivation
The media embed CKEditor widget doesn't provide an easy way to let authors embed an decorative image (with alt=""). It lets you specify your own instance-specific override, or accept the default alt text from the media entity.
This is a reasonable use-case. In particular, it will be good to support the "Image with adjacent text alternative" pattern from the WAI (Web Accessibilty Initiative) image tutorials.
It's possible to get alt="" by inserting a literal pair of quotes in the alt text input, but this isn't mentioned in the UI.
It's also possible to use CKEditor "show source" to manually edit the <drupal-media> tag, but that's (a) fiddly, and (b) fragile because later use of the UI dialog will over-write this.
These editorial tasks are all basically of equal importance, but the last one is difficult:
- Use (or revert to) the previously-stored default text on the media entity.
- Use an instance-specific override.
- Use an instance-specific empty alt attribute.
Proposed resolution
TBD.
Remaining tasks
TBD.
User interface changes
TBD.
API changes
TBD.
Data model changes
None?
Comments
Comment #2
andrewmacpherson commentedHere's the brain-dump from a Slack conversation today. Use this to update the issue summary.
Comment #4
xjmComment #7
bkosborneI know this seems to be targeted specifically at media embed in CKEditor, but this is borderline a duplicate of #2934405: [META] Improve workflows for image alternative text. I'll keep this open since the a11y maintainer opened it and I don't want to step on toes.
Comment #8
andrewmacpherson commentedThere are several open issues relating to the author tools for alt text, each trying different things. There are too many, and I fear we'll end up with something messy.
So I'd like to gather them under one parent, and take stock. Some will indeed turn out to be duplicates. Some others should be marked won't-fix, because they undermine the content model for existing sites.
Comment #13
kristen polTagging for the Bug Smash Initiative.
Comment #14
mgiffordAdding SC 1.1.1 https://www.w3.org/WAI/WCAG21/Understanding/non-text-content
Comment #16
yiyiSHAO commentedDiscussed this at drupalsouth with @larowlan, we found this should be postponed rather than postponed (maintainer needs more info)