File tree Expand file tree Collapse file tree 2 files changed +14
-10
lines changed
packages/components/src/Avatar Expand file tree Collapse file tree 2 files changed +14
-10
lines changed Original file line number Diff line number Diff line change @@ -47,13 +47,13 @@ const AvatarLayout: FC<AvatarUserProps> = ({
4747 : `${ firstInitial } ${ lastInitial } ` }
4848 </ AvatarInitials >
4949 { user && user . avatar_url && (
50- < AvatarPhoto color = { color } src = { user . avatar_url } />
50+ < AvatarPhoto color = { color } type = "image/png" data = { user . avatar_url } />
5151 ) }
5252 </ div >
5353 )
5454}
5555
56- const AvatarPhoto = styled . img `
56+ const AvatarPhoto = styled . object `
5757 width: 100%;
5858 height: 100%;
5959 position: absolute;
Original file line number Diff line number Diff line change @@ -99,10 +99,11 @@ exports[`AvatarCombo renders Avatar and its secondary avatar 1`] = `
9999 >
100100 JS
101101 </div >
102- <img
102+ <object
103103 className = " c3"
104104 color = " palette.purple400"
105- src = " https://gravatar.lookercdn.com/avatar/e8ebbdf1a64411721503995731?s=156& d=blank"
105+ data = " https://gravatar.lookercdn.com/avatar/e8ebbdf1a64411721503995731?s=156& d=blank"
106+ type = " image/png"
106107 />
107108 </div >
108109 <div
@@ -231,10 +232,11 @@ exports[`AvatarCombo renders Avatar initials and secondary with Code icon 1`] =
231232 >
232233 JS
233234 </div >
234- <img
235+ <object
235236 className = " c3"
236237 color = " palette.purple400"
237- src = " https://gravatar.lookercdn.com/avatar/e8ebbdf1a64411721503995731?s=156& d=blank"
238+ data = " https://gravatar.lookercdn.com/avatar/e8ebbdf1a64411721503995731?s=156& d=blank"
239+ type = " image/png"
238240 />
239241 </div >
240242 <div
@@ -614,10 +616,11 @@ exports[`AvatarUser shows initials if has broken url as avatar_url 1`] = `
614616 >
615617 JS
616618 </div >
617- <img
619+ <object
618620 className = " c2"
619621 color = " palette.purple400"
620- src = " https://gravatar.lookercdn.com/avatar/e8ebbdf1a64411721503995731?s=156& d=blank"
622+ data = " https://gravatar.lookercdn.com/avatar/e8ebbdf1a64411721503995731?s=156& d=blank"
623+ type = " image/png"
621624 />
622625</div >
623626` ;
@@ -697,10 +700,11 @@ exports[`AvatarUser shows user profile picture if it has good avatar_url 1`] =
697700 >
698701 JS
699702 </div >
700- <img
703+ <object
701704 className = " c2"
702705 color = " palette.purple400"
703- src = " https://gravatar.lookercdn.com/avatar/e8ebbdf1a64411721503995731?s=156& d=blank"
706+ data = " https://gravatar.lookercdn.com/avatar/e8ebbdf1a64411721503995731?s=156& d=blank"
707+ type = " image/png"
704708 />
705709</div >
706710` ;
You can’t perform that action at this time.
0 commit comments