Skip to content

Commit

Permalink
Merge pull request #69 from vector-im/t3chguy-patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
t3chguy authored Sep 4, 2023
2 parents 72c0620 + 9bfaf79 commit 00812e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
6 changes: 2 additions & 4 deletions src/components/Avatar/Avatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ export const Avatar = forwardRef<
size,
style = {},
onError,
title,
...props
},
ref,
Expand All @@ -101,8 +100,8 @@ export const Avatar = forwardRef<
{
ref,
role: "img",
title: id,
"aria-label": "",
// Default the aria-label to id
"aria-label": id,
...props,
"data-type": type,
"data-color": useIdColorHash(id),
Expand All @@ -129,7 +128,6 @@ export const Avatar = forwardRef<
style={style}
width={size}
height={size}
title={title}
onError={onError}
/>
)}
Expand Down
3 changes: 1 addition & 2 deletions src/components/Avatar/__snapshots__/Avatar.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@
exports[`Avatar > renders the image-less avatar 1`] = `
<DocumentFragment>
<span
aria-label=""
aria-label="@bob:example.org"
class="_avatar_de1988 _avatar-imageless_de1988"
data-color="8"
data-type="round"
role="img"
title="@bob:example.org"
>
B
</span>
Expand Down

0 comments on commit 00812e1

Please sign in to comment.