mirror of https://github.com/vector-im/riot-web
Exclude message timestamps from aria live region (#10584)
* Exclude message timestamps from aria live region * Update snapshott3chguy/dedup-icons-17oct
parent
e5b1b7b632
commit
075cb9e622
|
@ -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 New Issue