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

Don't render avatars in pills for screen readers. #4062

Merged
merged 2 commits into from
Feb 12, 2020

Conversation

MarcoZehe
Copy link
Contributor

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.

Fixes some part of element-hq/element-web/issues/9747.

Signed-off-by: Marco Zehe marcozehe@mailbox.org

Marco Zehe added 2 commits February 12, 2020 09:36
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 <marcozehe@mailbox.org>
Signed-off-by: Marco Zehe <marcozehe@mailbox.org>
Copy link
Member

@t3chguy t3chguy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM assuming CI passes

@t3chguy
Copy link
Member

t3chguy commented Feb 12, 2020

Thanks again for your contribution :D

@t3chguy t3chguy merged commit 97ab063 into matrix-org:develop Feb 12, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants