From 6fe4eb1fc3d03528af451b703312c8c8961fae93 Mon Sep 17 00:00:00 2001 From: Marco Zehe Date: Wed, 12 Feb 2020 09:36:59 +0100 Subject: [PATCH 1/2] Don't render avatars in pills for screen readers. These don't provide any additional information, but add extraneous noise. The link text and title already provide all information. Therefore, mark the avatar inside pills (the mention links inside messages) as hidden. Note that due to the images being part of something focusable, role "presentation" does not work here. Signed-off-by: Marco Zehe --- src/components/views/elements/Pill.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/views/elements/Pill.js b/src/components/views/elements/Pill.js index 1de857e7fe..44413505d6 100644 --- a/src/components/views/elements/Pill.js +++ b/src/components/views/elements/Pill.js @@ -211,7 +211,7 @@ const Pill = createReactClass({ if (room) { linkText = "@room"; if (this.props.shouldShowPillAvatar) { - avatar = ; + avatar =