also handle a11y on room avatars

This commit is contained in:
Matthew Hodgson 2015-11-13 18:36:46 +00:00
parent 2fabf69ce3
commit 2fd7196cdd
2 changed files with 2 additions and 1 deletions

View File

@ -22,4 +22,5 @@ limitations under the License.
color: #fff;
text-align: center;
font-weight: normal ! important;
speak: none;
}

View File

@ -57,7 +57,7 @@ module.exports = React.createClass({
return (
<span>
<span className="mx_RoomAvatar_initial"
<span className="mx_RoomAvatar_initial" aria-hidden="true"
style={{ fontSize: (this.props.width * 0.75) + "px",
width: this.props.width + "px",
lineHeight: this.props.height*1.2 + "px" }}>{ initial }</span>