Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions packages/react/src/Timeline/internal/CommentCard.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -148,12 +148,6 @@
color: var(--fgColor-muted);
}

/* Muted, underlined relative-time permalink. The underline keeps this muted
in-text link high-contrast accessible (matches the badge-row `.Timestamp`). */
.Timestamp {
text-decoration: underline;
}

.CardActions {
display: flex;
align-items: center;
Expand Down
7 changes: 2 additions & 5 deletions packages/react/src/Timeline/internal/CommentCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ import Avatar from '../../Avatar'
import {IconButton} from '../../Button'
import Label from '../../Label'
import Link from '../../Link'
import RelativeTime from '../../RelativeTime'
import Timeline from '../Timeline'
import {InlineAvatar} from './timelineStoryHelpers'
import {InlineAvatar, MutedTime} from './timelineStoryHelpers'
import classes from './CommentCard.module.css'

/**
Expand Down Expand Up @@ -207,9 +206,7 @@ export const CommentCard = ({
{hasInlineHeader ? <span className={classes.CommentedVerb}>commented</span> : null}
<span className={classes.TimestampLine}>
{/* Muted + underlined keeps this muted permalink high-contrast accessible. */}
<Link href="#" className={classes.Timestamp} muted>
<RelativeTime date={new Date(timestamp)} format="relative" />
</Link>
<MutedTime date={new Date(timestamp)} href="#" />
{viaApp ? (
<>
{' – with '}
Expand Down
Loading