design: use btn-primary for vote colors

This commit is contained in:
Xylight committed 2025-11-27 13:56:11 -08:00
1 parent 86fabfaf66
commit bac6e66ac5
3 files changed
+20 -4

No files matched your search

+2 -1
View File
@@ -28,6 +28,7 @@
}: Props = $props()
const castVote = async (newVote: number) => {
if (navigator.vibrate) navigator.vibrate(1)
if (!profile.current?.jwt) {
toast({ content: $t('toast.loginVoteGate'), type: 'warning' })
return
@@ -82,7 +83,7 @@
vote,
target == 'upvote' ? 'upvotes' : 'downvotes',
)
: 'hover:bg-slate-100 dark:hover:bg-zinc-800',
: 'btn-tertiary',
]}
aria-pressed={vote == targetNum}
aria-label={$t(