Merge pull request #11202 from claudiahub/gh-11196
Added alternative text to profile picture (Settings)
This commit is contained in:
@@ -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"
|
||||
/>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user