Media Gallery alt attribute empty on thumbnails

We are working on an accessibility project and we're trying to fix the issues we're getting as much as possible. Recently we found that under Media Gallery, specifically on the Media Gallery - File List widget, the generated thumbnails comes with an empty alt attribute if the post contains an embedded video and if the post contains an image, the alt is missing:

Example, for videos the html generated is:

<div class="avatar">
	<a href="http://myurl/m/videos/1307" class="internal-link view-post">
		<img src="//img.youtube.com/vi/hZxFobp4uxE/hqdefault.jpg" border="0" alt="" style="max-height: 100px;max-width: 100px;">
	</a>
</div>

and for an image we have these:

<div class="post-thumbnail">
    <a href="http://myurl/" rel="nofollow">
        <img src="/communityserver-components-groupavatars/default.png" border="0">
    </a>       
</div>

Now, in the Widget both elements are created under the following line:

<div class="avatar">
	<a href="$core_v2_encoding.HtmlAttributeEncode($media.Url)" class="internal-link view-post">
		$!core_v2_ui.GetPreviewHtml($media.File.FileUrl, "%{width=100,height=100}")
	</a>
</div>

The $core_v2_ui.GetPreviewHtml receives a url and a couple of parameters like height and width; I've tried to add the alt attribute but it doesn't works so I guess the auto-generated alt attribute comes from the internals so I was wondering if there is a way to manually overwrite the attribute. We are running Telligent 11.1.5.13464. Thanks

Parents Reply Children