Exclude message timestamps from aria live region (#10584)
* Exclude message timestamps from aria live region * Update snapshot
This commit is contained in:
parent
e5b1b7b632
commit
075cb9e622
3 changed files with 4 additions and 3 deletions
|
@ -30,7 +30,7 @@ interface IProps {
|
|||
export default class MessageTimestamp extends React.Component<IProps> {
|
||||
public render(): React.ReactNode {
|
||||
const date = new Date(this.props.ts);
|
||||
let timestamp;
|
||||
let timestamp: string;
|
||||
if (this.props.showRelative) {
|
||||
timestamp = formatRelativeTime(date, this.props.showTwelveHour);
|
||||
} else if (this.props.showFullDate) {
|
||||
|
@ -46,6 +46,7 @@ export default class MessageTimestamp extends React.Component<IProps> {
|
|||
className="mx_MessageTimestamp"
|
||||
title={formatFullDate(date, this.props.showTwelveHour)}
|
||||
aria-hidden={true}
|
||||
aria-live="off"
|
||||
>
|
||||
{timestamp}
|
||||
</span>
|
||||
|
|
|
@ -1090,7 +1090,7 @@ export class UnwrappedEventTile extends React.Component<EventTileProps, IState>
|
|||
|
||||
const timestamp = showTimestamp && ts ? messageTimestamp : null;
|
||||
|
||||
let reactionsRow;
|
||||
let reactionsRow: JSX.Element | undefined;
|
||||
if (!isRedacted) {
|
||||
reactionsRow = (
|
||||
<ReactionsRow
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue