1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-20 16:22:28 +03:00

Hide avatars from screen readers by default

To avoid having them read out the user's ID
This commit is contained in:
Travis Ralston
2019-05-17 15:25:59 -06:00
parent 47add75278
commit f1aa2875e1

View File

@@ -189,7 +189,7 @@ module.exports = React.createClass({
const imgNode = (
<img className="mx_BaseAvatar_image" src={imageUrl}
alt="" title={title} onError={this.onError}
width={width} height={height} />
width={width} height={height} aria-hidden="true" />
);
if (onClick != null) {
return (