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

Commit

Permalink
Override aria-label for whole tile
Browse files Browse the repository at this point in the history
  • Loading branch information
akirk committed Mar 8, 2024
1 parent 42ac873 commit e30354b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/views/rooms/EventTile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1210,6 +1210,7 @@ export class UnwrappedEventTile extends React.Component<EventTileProps, IState>
"ref": this.ref,
"className": classes,
"aria-live": ariaLive,
"aria-label": this.props.mxEvent.sender.name + '. ' + (this.props.mxEvent.clearEvent || this.props.mxEvent.event).content.body,
"aria-atomic": true,
"data-scroll-tokens": scrollToken,
"data-has-reply": !!replyChain,
Expand Down Expand Up @@ -1399,6 +1400,7 @@ export class UnwrappedEventTile extends React.Component<EventTileProps, IState>
"className": classes,
"tabIndex": -1,
"aria-live": ariaLive,
"aria-label": this.props.mxEvent.sender.name + '. ' + (this.props.mxEvent.clearEvent || this.props.mxEvent.event).content.body,
"aria-atomic": "true",
"data-scroll-tokens": scrollToken,
"data-layout": this.props.layout,
Expand Down

0 comments on commit e30354b

Please sign in to comment.