You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-16 06:42:26 +03:00
Hide user avatars from screen readers in group and room user lists.
Like in pill components, these only duplicate information for screen readers, so hide them. Signed-off-by: Marco Zehe <marcozehe@mailbox.org>
This commit is contained in:
@@ -59,7 +59,7 @@ export default createReactClass({
|
||||
);
|
||||
|
||||
const av = (
|
||||
<BaseAvatar
|
||||
<BaseAvatar aria-hidden="true"
|
||||
name={this.props.member.displayname || this.props.member.userId}
|
||||
idName={this.props.member.userId}
|
||||
width={36} height={36}
|
||||
|
||||
@@ -175,7 +175,7 @@ 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 (
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user