Always mute timestamp from screen readers

The short time is still read out (eg: 15:24), however by ignoring the anchor we prevent the reader from saying the title of the containing span. This prevents readers saying "Wed May 22, 2019 at 15:24 15:24".

See https://github.com/vector-im/riot-web/issues/9747
This commit is contained in:
Travis Ralston 2019-05-22 15:25:34 -06:00
parent 8f6884ec15
commit c55f083a28

View file

@ -789,7 +789,7 @@ module.exports = withMatrixClient(React.createClass({
</div> </div>
{ sender } { sender }
<div className="mx_EventTile_line"> <div className="mx_EventTile_line">
<a href={permalink} onClick={this.onPermalinkClicked} aria-hidden={muteScreenReader}> <a href={permalink} onClick={this.onPermalinkClicked} aria-hidden={true}>
{ timestamp } { timestamp }
</a> </a>
{ this._renderE2EPadlock() } { this._renderE2EPadlock() }