File tree Expand file tree Collapse file tree 1 file changed +15
-11
lines changed Expand file tree Collapse file tree 1 file changed +15
-11
lines changed Original file line number Diff line number Diff line change @@ -5,17 +5,20 @@ import { cn } from "@/lib/utils/cn"
5
5
6
6
import { BaseLink } from "./Link"
7
7
8
- const titleVariants = cva ( "group-hover/link:underline" , {
9
- variants : {
10
- variant : {
11
- bold : "text-2xl font-bold" ,
12
- black : "text-3xl font-black" ,
8
+ const titleVariants = cva (
9
+ "group-hover/link:underline group-focus/link:underline" ,
10
+ {
11
+ variants : {
12
+ variant : {
13
+ bold : "text-2xl font-bold" ,
14
+ black : "text-3xl font-black" ,
15
+ } ,
13
16
} ,
14
- } ,
15
- defaultVariants : {
16
- variant : "bold" ,
17
- } ,
18
- } )
17
+ defaultVariants : {
18
+ variant : "bold" ,
19
+ } ,
20
+ }
21
+ )
19
22
20
23
type CardProps = React . HTMLAttributes < HTMLDivElement > & {
21
24
href ?: string
@@ -68,7 +71,8 @@ const CardBanner = React.forwardRef<
68
71
className = { cn (
69
72
"h-48 w-full self-stretch overflow-hidden rounded-2xl" ,
70
73
"bg-gradient-to-b from-accent-a/10 to-accent-a/0 dark:from-accent-a/15 dark:to-accent-a/5" ,
71
- "[&_img]:size-full [&_img]:object-cover [&_img]:duration-200 group-hover:[&_img]:scale-110 group-hover:[&_img]:duration-200" ,
74
+ "[&_img]:size-full [&_img]:object-cover [&_img]:duration-200" ,
75
+ "group-hover/link:[&_img]:scale-110 group-hover/link:[&_img]:duration-200 group-focus/link:[&_img]:scale-110 group-focus/link:[&_img]:duration-200" ,
72
76
className
73
77
) }
74
78
{ ...props }
You can’t perform that action at this time.
0 commit comments