Skip to content

Commit 2fabf69

Browse files
committed
Mark up the avatar initials so they're not read out by screen readers
1 parent f8d628d commit 2fabf69

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/skins/vector/css/atoms/MemberAvatar.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@ limitations under the License.
2323
position: absolute;
2424
color: #fff;
2525
text-align: center;
26+
speak: none;
2627
}
2728

2829
.mx_MemberAvatar_image {
2930
border-radius: 20px;
30-
}
31+
}

src/skins/vector/views/atoms/MemberAvatar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ module.exports = React.createClass({
5050

5151
return (
5252
<span className="mx_MemberAvatar">
53-
<span className="mx_MemberAvatar_initial"
53+
<span className="mx_MemberAvatar_initial" aria-hidden="true"
5454
style={{ fontSize: (this.props.width * 0.75) + "px",
5555
width: this.props.width + "px",
5656
lineHeight: this.props.height*1.2 + "px" }}>{ initial }</span>

0 commit comments

Comments
 (0)