Skip to content

Openverse is a search engine for openly-licensed media. This monorepo includes all application code.

Add alt attributes to license icons (#5658)

shreyashgawade143-ship-it17446fbee1fc
diff --git a/frontend/shared/utils/attribution-html.ts b/frontend/shared/utils/attribution-html.ts
index 0d87a27a4..91d422c38 100644
--- a/frontend/shared/utils/attribution-html.ts
+++ b/frontend/shared/utils/attribution-html.ts
@@ -140,6 +140,7 @@ const licenseElementImg = (licenseElement: LicenseElement): string => {
const src = `https://mirrors.creativecommons.org/presskit/icons/${filename}.svg`
return h("img", {
src,
+ alt: "",
style: "height: 1em; margin-right: 0.125em; display: inline;",
})
}