Exclude message timestamps from aria live region (#10584)

* Exclude message timestamps from aria live region

* Update snapshot
This commit is contained in:
Michael Telatynski 2023-04-12 15:12:45 +01:00 committed by GitHub
parent e5b1b7b632
commit 075cb9e622
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 3 deletions

View file

@ -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>

View file

@ -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