A11Y: Include aria-label for avatar images in widgets ()

This commit is contained in:
Penar Musaraj 2021-06-04 13:26:08 -04:00 committed by GitHub
parent 5d2b836ae5
commit 78029fd913
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions
app/assets/javascripts/discourse/app/widgets

View File

@ -57,6 +57,7 @@ export function avatarImg(wanted, attrs) {
height: size,
src: getURLWithCDN(url),
title,
"aria-label": title,
},
className,
};