Skip to content

Commit 2b0ca8b

Browse files
Improve reactions
1 parent 5f7d47c commit 2b0ca8b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

site/src/components/reactions.client.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ const ReactionButton = memo(
115115
return (
116116
<button
117117
aria-hidden={hidden ? "true" : undefined}
118+
aria-label={`${count} reaction${count !== 1 ? "s" : ""} with ${emoji}`}
119+
aria-pressed={active}
118120
className={cn(
119121
buttonVariants({ variant: "none" }),
120122
"group rounded-full border border-transparent bg-muted px-2.5 py-1 text-sm tabular-nums will-change-transform hover:border-border hover:bg-background focus-visible:border-border focus-visible:bg-background data-[state=open]:border-border data-[state=open]:bg-background",

0 commit comments

Comments
 (0)