Clean up html structure (#1869)

Fix different html syntax errors to improve a11y.
This commit is contained in:
Eduard Heimbuch
2021-11-29 13:57:05 +01:00
committed by GitHub
parent 542a5aac59
commit 5eb1d9cd22
19 changed files with 105 additions and 708 deletions

View File

@@ -36,8 +36,9 @@ const DateFromNow: FC<Props> = ({ className, ...dateProps }) => {
return null;
}
const dateTime = formatter.formatFull();
return (
<DateElement className={className} title={formatter.formatFull()}>
<DateElement className={className} dateTime={dateTime} title={dateTime}>
{formatter.formatDistance()}
</DateElement>
);