discourse/lib/onebox/templates/preview_error_onebox.mustache
Kris cb0b8351a9
A11Y: onebox avatars/images are decorative, so screenreaders can skip (#33572)
Adding `alt=""` to tell screenreaders to skip these, we don't reliably
have alt content available for onebox images and they tend to be
decorative, so better to omit.


<img width="738" height="151" alt="learn.microsoft.com onebox with the
link whats new in C# 11, there's a purple C# badge to the left of the
link"
src="https://github.com/user-attachments/assets/15bdc830-683f-4c69-a11b-9d54c66fa627"
/>


We already do this in some oneboxes, so this covers some more cases
including the generic.
2025-07-11 09:55:48 -04:00

10 lines
318 B
Text
Vendored

<aside class="onebox preview-error">
{{#favicon}}
<img src="{{favicon}}" class="site-icon" alt=""/>
{{/favicon}}
<a href="{{link}}" target='_blank' rel='noopener noreferrer'>{{title}}</a>
<article class="onebox-warning-message">
{{{error_message}}}
</article>
<div class="clearfix"></div>
</aside>