Merge pull request #11202 from claudiahub/gh-11196

Added alternative text to profile picture (Settings)
This commit is contained in:
Johan Haals
2022-05-02 14:06:31 +02:00
committed by GitHub
2 changed files with 12 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-user-settings': patch
---
Added alternative text to profile picture
@@ -36,5 +36,11 @@ export const UserSettingsSignInAvatar = ({ size }: Props) => {
const classes = useStyles(size ? { size } : { size: iconSize });
const { profile } = useUserProfile();
return <Avatar src={profile.picture} className={classes.avatar} />;
return (
<Avatar
src={profile.picture}
className={classes.avatar}
alt="Profile picture"
/>
);
};