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

Post here questions and problems related to editing and publishing DITA content.
ckabstein
Posts: 139
Joined: Fri Apr 24, 2015 12:28 pm

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

Post 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
oXygen XML Editor 25.0 build 2023013006
DITA OT 3.7.3