Skip to content
Merged
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
12 changes: 6 additions & 6 deletions src/components/AuthorByline.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export function AuthorByline({
<Link
to={`/user/${author}`}
onClick={onClick}
className={`${metaPillClass} font-medium`}
className={metaPillClass}
>
<User aria-hidden className="size-3.5" />
{author}
Expand All @@ -54,15 +54,15 @@ export function AuthorByline({
// that class's `-mx-1.5 -my-0.5` negative margins would extend OUT
// of the wrapper into adjacent meta-row items (Globe / Clock pills)
// and cause overlap. The substitute `hover:text-accent` is axe-OK
// here because the OP variant also has the always-visible badge +
// bolder weight, so hover colour isn't the only "I'm clickable"
// affordance.
// here because the OP variant already carries an always-visible
// badge, so the hover colour is additive rather than the only
// distinctive treatment in that byline slot.
return (
<OpWrap>
<Link
to={`/user/${author}`}
onClick={onClick}
className="inline-flex items-center gap-1.5 font-semibold text-foreground hover:text-accent transition-colors"
className="inline-flex items-center gap-1.5 text-foreground hover:text-accent transition-colors"
>
<User aria-hidden className="size-3.5" />
{author}
Expand All @@ -78,7 +78,7 @@ export function AuthorByline({
// leave `''` as a blank span and break `screen.getByText('unknown')`
// assertions in StoryCard / Comment / CommentArticle tests.
return (
<span className="inline-flex items-center gap-1.5 font-medium">
<span className="inline-flex items-center gap-1.5">
<User aria-hidden className="size-3.5" />
{/* eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing */}
{author || 'unknown'}
Expand Down
6 changes: 3 additions & 3 deletions src/components/Comment.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,20 +55,20 @@ export function Comment({ comment, storyAuthor = '', stageIdx }: CommentProps) {
<OpWrap>
<Link
to={`/user/${comment.author}`}
className="font-semibold text-foreground hover:text-accent transition-colors"
className="text-foreground hover:text-accent transition-colors"
>
{comment.author}
</Link>
</OpWrap>
) : isKnownAuthor(comment.author) ? (
<Link
to={`/user/${comment.author}`}
className="font-medium text-foreground hover:text-accent transition-colors"
className="text-foreground hover:text-accent transition-colors"
>
{comment.author}
</Link>
) : (
<span className="font-medium text-foreground">
<span className="text-foreground">
{comment.author || 'unknown'}
</span>
)}
Expand Down
2 changes: 1 addition & 1 deletion src/pages/UserProfile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export function UserProfile() {

<Link
to={`/submitted/${profile.id}`}
className={`${metaPillClass} capitalize font-medium`}
className={`${metaPillClass} capitalize`}
>
<FileText aria-hidden className="size-3.5" />
submissions
Expand Down