Page 1 of 1

Webhelp Responsive. Use ALT content for zoomed images in pop-up window?

Posted: Thu Dec 02, 2021 5:57 pm
by ckabstein
Hi,

For quality purposes, we often create inline images with a bigger size that are scaled down with the width attribute to make them fit within a line of text.
However, this enables a user to click on the image which is then shown in its original size in the modal.
Although this is acceptable behavior, we run into the following problem:
Normally, the ALT text of an image is added as a caption at the bottom of the zoomed image. Our inline images, though, are not supposed to get ALT information, i.e. they stay empty, because they are usually accompanied by a <uicontrol> element that already contains the necessary information.
We are in some kind of dilemma here, because on the one hand, it would be nice to use the ALT information in the modal. But on the other hand, a screenreader would read the ALT information AND the uicontrol content, which will eventually lead to text repeats within the documentation content.

Could there be a way to use the <uicontrol> information for the modal if the ALT element is empty?

Thanks,
Christina