discourse/lib/onebox/templates
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
..
github
json_ld_partials Add support for JSON LD in Onebox (#17007) 2022-06-13 17:32:34 +02:00
_layout.mustache A11Y: onebox avatars/images are decorative, so screenreaders can skip (#33572) 2025-07-11 09:55:48 -04:00
allowlistedgeneric.mustache A11Y: onebox avatars/images are decorative, so screenreaders can skip (#33572) 2025-07-11 09:55:48 -04:00
amazon.mustache FIX: correctly unescape title for amazon oneboxes (#33010) 2025-06-02 17:50:13 +05:30
discourse_category_onebox.mustache FIX: Allow sanitized-HTML in GH issues and categories oneboxes. (#25374) 2024-01-22 15:25:29 -03:00
discourse_topic_onebox.mustache
discourse_user_onebox.mustache UX: Upgrade to fontawesome 6.6.0 (#28778) 2024-09-09 14:40:56 +01:00
discoursetopic.mustache FEATURE: Show more context in Discourse topic oneboxes 2023-01-11 14:22:53 +01:00
githubactions.mustache
githubblob.mustache UX: Improve git blob oneboxes (#30694) 2025-01-10 11:49:36 +00:00
githubcommit.mustache A11Y: remove redundant alt text from github oneboxes (#30083) 2024-12-04 12:25:03 +11:00
githubfolder.mustache
githubgist.mustache FIX: Localize text in github oneboxes (#25327) 2024-01-19 11:26:06 -03:00
githubissue.mustache A11Y: remove redundant alt text from github oneboxes (#30083) 2024-12-04 12:25:03 +11:00
githubpullrequest.mustache A11Y: remove redundant alt text from github oneboxes (#30083) 2024-12-04 12:25:03 +11:00
githubrepo.mustache FEATURE: Allow oneboxing private GitHub repo URLs and add private indicator to HTML (#27947) 2024-07-19 12:21:45 +10:00
gitlabblob.mustache UX: Improve git blob oneboxes (#30694) 2025-01-10 11:49:36 +00:00
googledocs.mustache
googledrive.mustache
googleplayapp.mustache
hackernews.mustache FEATURE: Onebox for news.ycombinator.com (#15781) 2022-02-03 13:39:21 -03:00
instagram.mustache
pastebin.mustache
pdf.mustache
preview_error_fragment_onebox.mustache
preview_error_onebox.mustache A11Y: onebox avatars/images are decorative, so screenreaders can skip (#33572) 2025-07-11 09:55:48 -04:00
pubmed.mustache
stackexchange.mustache
threadsstatus.mustache A11Y: onebox avatars/images are decorative, so screenreaders can skip (#33572) 2025-07-11 09:55:48 -04:00
twitterstatus.mustache A11Y: onebox avatars/images are decorative, so screenreaders can skip (#33572) 2025-07-11 09:55:48 -04:00
wikimedia.mustache DEV: Use thumbnail url for wikimedia onebox image (#22620) 2023-07-14 12:20:18 -06:00
wikipedia.mustache
xkcd.mustache