mirror of
https://github.com/vector-im/element-web.git
synced 2025-11-05 02:31:07 +01:00
also handle a11y on room avatars
This commit is contained in:
parent
2fabf69ce3
commit
2fd7196cdd
@ -22,4 +22,5 @@ limitations under the License.
|
|||||||
color: #fff;
|
color: #fff;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-weight: normal ! important;
|
font-weight: normal ! important;
|
||||||
|
speak: none;
|
||||||
}
|
}
|
||||||
@ -57,7 +57,7 @@ module.exports = React.createClass({
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<span>
|
<span>
|
||||||
<span className="mx_RoomAvatar_initial"
|
<span className="mx_RoomAvatar_initial" aria-hidden="true"
|
||||||
style={{ fontSize: (this.props.width * 0.75) + "px",
|
style={{ fontSize: (this.props.width * 0.75) + "px",
|
||||||
width: this.props.width + "px",
|
width: this.props.width + "px",
|
||||||
lineHeight: this.props.height*1.2 + "px" }}>{ initial }</span>
|
lineHeight: this.props.height*1.2 + "px" }}>{ initial }</span>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user