Skip to content

Commit d2c1020

Browse files
authored
In GH PR review page, headers have redundant url content (#7511)
Fixes #7509
1 parent fea9a13 commit d2c1020

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

webviews/components/user.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { Icon } from './icon';
1010
const InnerAvatar = ({ for: author }: { for: Partial<IAccount> }) => (
1111
<>
1212
{author.avatarUrl ? (
13-
<img className="avatar" src={author.avatarUrl} alt="" role="presentation" />
13+
<img className="avatar" src={author.avatarUrl} alt="" role="presentation" aria-hidden="true"/>
1414
) : (
1515
<Icon className="avatar-icon" src={require('../../resources/icons/dark/github.svg')} />
1616
)}
@@ -19,7 +19,7 @@ const InnerAvatar = ({ for: author }: { for: Partial<IAccount> }) => (
1919

2020
export const Avatar = ({ for: author, link = true, substituteIcon }: { for: Partial<IAccount>, link?: boolean, substituteIcon?: JSX.Element }) => {
2121
if (link) {
22-
return <a className="avatar-link" href={author.url} title={author.url}>
22+
return <a className="avatar-link" href={author.url} title={author.url} aria-hidden="true">
2323
{substituteIcon ?? <InnerAvatar for={author} />}
2424
</a>;
2525
} else {

0 commit comments

Comments
 (0)