Commit f6c55bd1 authored by Lyza Danger Gardner's avatar Lyza Danger Gardner Committed by Lyza Gardner

Update shared components in AnnotationTimestamps

parent e12b4735
import { Link } from '@hypothesis/frontend-shared'; import { LinkBase } from '@hypothesis/frontend-shared/lib/next';
import { useEffect, useMemo, useState } from 'preact/hooks'; import { useEffect, useMemo, useState } from 'preact/hooks';
import { import {
...@@ -89,14 +89,16 @@ export default function AnnotationTimestamps({ ...@@ -89,14 +89,16 @@ export default function AnnotationTimestamps({
</span> </span>
)} )}
{annotationUrl ? ( {annotationUrl ? (
<Link <LinkBase
classes="p-muted-link" // The light-text hover color is not a standard color for a Link, so
// LinkBase is used here
classes="text-color-text-light hover:text-color-text-light hover:underline"
target="_blank" target="_blank"
title={created.absolute} title={created.absolute}
href={annotationUrl} href={annotationUrl}
> >
{created.relative} {created.relative}
</Link> </LinkBase>
) : ( ) : (
<span <span
className="color-text-color-light" className="color-text-color-light"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment