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 ddbc643 commit b44734c
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,

Check failure on line 1213 in src/components/views/rooms/EventTile.tsx

View workflow job for this annotation

GitHub Actions / Typescript Syntax Check

Object is possibly 'null'.

Check failure on line 1213 in src/components/views/rooms/EventTile.tsx

View workflow job for this annotation

GitHub Actions / Typescript Syntax Check

Object is possibly 'undefined'.

Check failure on line 1213 in src/components/views/rooms/EventTile.tsx

View workflow job for this annotation

GitHub Actions / Typescript Syntax Check

Property 'clearEvent' is private and only accessible within class 'MatrixEvent'.
"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,

Check failure on line 1403 in src/components/views/rooms/EventTile.tsx

View workflow job for this annotation

GitHub Actions / Typescript Syntax Check

Object is possibly 'null'.

Check failure on line 1403 in src/components/views/rooms/EventTile.tsx

View workflow job for this annotation

GitHub Actions / Typescript Syntax Check

Object is possibly 'undefined'.

Check failure on line 1403 in src/components/views/rooms/EventTile.tsx

View workflow job for this annotation

GitHub Actions / Typescript Syntax Check

Property 'clearEvent' is private and only accessible within class 'MatrixEvent'.
"aria-atomic": "true",
"data-scroll-tokens": scrollToken,
"data-layout": this.props.layout,
Expand Down

0 comments on commit b44734c

Please sign in to comment.