Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Hide user avatars from screen readers in group and room user lists. #4145

Merged
merged 2 commits into from
Feb 28, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/components/views/groups/GroupMemberTile.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ export default createReactClass({

const av = (
<BaseAvatar
aria-hidden="true"
name={this.props.member.displayname || this.props.member.userId}
idName={this.props.member.userId}
width={36} height={36}
Expand Down
3 changes: 2 additions & 1 deletion src/components/views/rooms/EntityTile.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,8 @@ const EntityTile = createReactClass({

const BaseAvatar = sdk.getComponent('avatars.BaseAvatar');

const av = this.props.avatarJsx || <BaseAvatar name={this.props.name} width={36} height={36} />;
const av = this.props.avatarJsx ||
<BaseAvatar name={this.props.name} width={36} height={36} aria-hidden="true" />;

// The wrapping div is required to make the magic mouse listener work, for some reason.
return (
Expand Down
2 changes: 1 addition & 1 deletion src/components/views/rooms/MemberTile.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ export default createReactClass({
}

const av = (
<MemberAvatar member={member} width={36} height={36} />
<MemberAvatar member={member} width={36} height={36} aria-hidden="true" />
);

if (member.user) {
Expand Down