A11Y: Hide post avatar link from screen readers

This commit is contained in:
awesomerobot 2020-09-22 22:23:10 -04:00
parent 0f04864da1
commit 6977f78266
1 changed files with 5 additions and 1 deletions

View File

@ -64,7 +64,11 @@ export function avatarFor(wanted, attrs) {
"a",
{
className: `trigger-user-card ${attrs.className || ""}`,
attributes: { href: attrs.url, "data-user-card": attrs.username },
attributes: {
href: attrs.url,
"data-user-card": attrs.username,
"aria-hidden": true,
},
},
avatarImg(wanted, attrs)
);