mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-02 11:35:57 +01:00
Clean up html structure (#1869)
Fix different html syntax errors to improve a11y.
This commit is contained in:
@@ -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>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user