From bac6e66ac574ef27c4098daa272aa14900813303 Mon Sep 17 00:00:00 2001 From: Xylight Date: Thu, 27 Nov 2025 13:56:05 -0800 Subject: [PATCH] design: use btn-primary for vote colors --- src/lib/feature/comment/CommentVote.svelte | 3 ++- src/lib/feature/post/PostVote.svelte | 7 ++++--- src/lib/ui/shared/button/Button.svelte | 14 ++++++++++++++ 3 files changed, 20 insertions(+), 4 deletions(-) diff --git a/src/lib/feature/comment/CommentVote.svelte b/src/lib/feature/comment/CommentVote.svelte index 48193f51..09710b62 100644 --- a/src/lib/feature/comment/CommentVote.svelte +++ b/src/lib/feature/comment/CommentVote.svelte @@ -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( diff --git a/src/lib/feature/post/PostVote.svelte b/src/lib/feature/post/PostVote.svelte index bda3fd2f..0f141187 100644 --- a/src/lib/feature/post/PostVote.svelte +++ b/src/lib/feature/post/PostVote.svelte @@ -1,7 +1,7 @@