WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Alt text for images

for

From: Jeremy Echols
Date: Sep 22, 2020 7:43AM


Valid point – we're still transitioning from Drupal 7, and I've only recently inherited the setup. It could be that there are lots of trivial ways to deal with this that I have no idea exist. My predecessor was a pretty smart guy, and seemed to think it was very difficult to work around, but that could also be due to custom modules *his* predecessor set up.

So a better statement might be, "be aware that some CMSes may make reuse of images in different contexts a little bit difficult depending on the setup."

Not really a powerful statement at that point, though, heh.

From: Philip Kiff < <EMAIL REMOVED> >
Sent: Monday, September 21, 2020 16:40
To: <EMAIL REMOVED>
Cc: Jeremy Echols < <EMAIL REMOVED> >
Subject: Re: [WebAIM] Alt text for images

On 2020-09-21 18:51, Jeremy Echols wrote:

It's worth noting that many CMSes let you reuse the same image in different contexts, but they also reuse the alt attribute. We run Drupal for pretty a huge number of our pages, and this is a constant problem. A general-purpose "stock"-like photo of a student can be used for so many purposes, and when the CMS tries to force a single alt text on you, it becomes a huge pain.

Your note about problems with Drupal tweaked my memory and curiosity.

I think I recall reading some lengthy discussions years ago about how Drupal would handle the issue of assigning different alternative text attributes to the same image in different contexts, and I thought that the community had come up with solutions for this? This is way back when there were multiple, significantly different versions of the media library module for Drupal 7.x floating around.

I just assumed that current versions of Drupal (8.x and 9.x) would have something built in that dealt with this?

This page about embedding media with CK Editor, seems to allow a default alternative text to be passed on if configured to do so, but then allows the CK Editor to override it as desired:
https://www.drupal.org/docs/core-modules-and-themes/core-modules/media-library-module/embedding-media-with-ckeditor<https://urldefense.com/v3/__https:/www.drupal.org/docs/core-modules-and-themes/core-modules/media-library-module/embedding-media-with-ckeditor__;!!C5qS4YX3!XsRP_-cK6qlUhKh-W51A3ah9FqTtdd7xCtIAOe66Ie7k0_cvr-sOIFFPikXZ5BpTCw$>

Phil.

Philip Kiff
D4K Communications