Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Always mute timestamp from screen readers
Browse files Browse the repository at this point in the history
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 element-hq/element-web#9747
  • Loading branch information
turt2live committed May 22, 2019
1 parent 8f6884e commit c55f083
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/views/rooms/EventTile.js
Original file line number Diff line number Diff line change
Expand Up @@ -789,7 +789,7 @@ module.exports = withMatrixClient(React.createClass({
</div>
{ sender }
<div className="mx_EventTile_line">
<a href={permalink} onClick={this.onPermalinkClicked} aria-hidden={muteScreenReader}>
<a href={permalink} onClick={this.onPermalinkClicked} aria-hidden={true}>
{ timestamp }
</a>
{ this._renderE2EPadlock() }
Expand Down

0 comments on commit c55f083

Please sign in to comment.