@@ -10,6 +10,7 @@ import Translation from "@/components/Translation"
10
10
import { Flex , VStack } from "@/components/ui/flex"
11
11
import { List , ListItem } from "@/components/ui/list"
12
12
13
+ import { cn } from "@/lib/utils/cn"
13
14
import { trackCustomEvent } from "@/lib/utils/matomo"
14
15
15
16
import { useStakingConsiderations } from "@/hooks/useStakingConsiderations"
@@ -35,7 +36,7 @@ const IndicatorGroup = ({
35
36
return < WarningProductGlyphIcon style = { style } />
36
37
}
37
38
return (
38
- < VStack className = "flex-1 p -2" >
39
+ < VStack className = "flex-1 gap -2" >
39
40
< IndicatorIcon style = { styleObj } />
40
41
< p className = "max-w-[10rem] text-center text-xs" >
41
42
< Translation id = { label } />
@@ -63,12 +64,6 @@ const StakingConsiderations = ({ page }: StakingConsiderationsProps) => {
63
64
activeIndex,
64
65
} = useStakingConsiderations ( { page } )
65
66
66
- const activeStyles = {
67
- bg : "background.highlight" ,
68
- color : "body.base" ,
69
- transition : "background 0.5s, color 0.5s" ,
70
- }
71
-
72
67
return (
73
68
< Flex className = "flex-col md:flex-row" >
74
69
< ButtonDropdown list = { dropdownLinks } className = "mb-4 md:hidden" />
@@ -84,20 +79,22 @@ const StakingConsiderations = ({ page }: StakingConsiderationsProps) => {
84
79
handleSelection ( idx )
85
80
trackCustomEvent ( matomo )
86
81
} }
87
- className = { `relative mb-0 table h-8 w-full cursor-pointer p-3 py-1 hover:[${ activeStyles } ]` }
88
- { ...( idx === activeIndex
89
- ? activeStyles
90
- : { color : "primary.base" } ) }
82
+ className = { cn (
83
+ "transition-background relative mb-0 table h-8 w-full cursor-pointer p-3 duration-500 hover:bg-background-highlight hover:text-body" ,
84
+ idx === activeIndex
85
+ ? "bg-background-highlight text-body"
86
+ : "text-primary"
87
+ ) }
91
88
>
92
89
{ title }
93
90
</ ListItem >
94
91
) ) }
95
92
</ List >
96
93
) }
97
94
</ div >
98
- < Flex className = "felx-col bg-highlight flex-2 min-h-[410px] items-center p-6" >
95
+ < Flex className = "min-h-[410px] flex-[2] flex-col items-center bg-background-highlight p-6" >
99
96
< StyledSvg />
100
- < h3 className = "mt-10 text-[27px] font-bold leading-[1.4]" > { title } </ h3 >
97
+ < h3 className = "mt-10 text-2xl font-bold leading-[1.4]" > { title } </ h3 >
101
98
< p > { description } </ p >
102
99
< Flex className = "mt-auto justify-center gap-8" >
103
100
{ ! ! valid && (
0 commit comments