Skip to content

Commit 6b32318

Browse files
committed
use twMerge so that hover and selection works.
1 parent 7a28666 commit 6b32318

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

browser-extension/tests/playground/claude.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
//import { DraftStats } from '@/lib/enhancers/draftStats'
22

33
import { GitPullRequestIcon, IssueOpenedIcon } from '@primer/octicons-react'
4+
import { twMerge } from 'tailwind-merge'
45
import { cva, type VariantProps } from 'class-variance-authority'
56
import {
67
Archive,
@@ -45,11 +46,11 @@ const statBadge = cva(
4546
unsent: 'bg-amber-100 text-amber-700',
4647
},
4748
clickable: {
48-
true: 'cursor-pointer border border-transparent hover:border-blue-500 hover:border-opacity-50 transition-colors',
49+
true: 'cursor-pointer border border-transparent hover:border-opacity-50',
4950
false: '',
5051
},
5152
selected: {
52-
true: 'border-blue-500 border-opacity-100',
53+
true: 'border-opacity-100',
5354
false: '',
5455
},
5556
},
@@ -88,11 +89,11 @@ const Badge = ({ text, type, onClick, isSelected }: BadgeProps) => {
8889

8990
return (
9091
<Component
91-
className={statBadge({
92+
className={twMerge(statBadge({
9293
type,
9394
clickable: !!onClick,
9495
selected: !!isSelected
95-
})}
96+
}))}
9697
onClick={onClick}
9798
{...(onClick && { type: 'button' })}
9899
>

0 commit comments

Comments
 (0)