@@ -37,17 +37,9 @@ const IndicatorGroup = ({
37
37
return < WarningProductGlyphIcon style = { style } />
38
38
}
39
39
return (
40
- < VStack
41
- spacing = { 2 }
42
- flex = { 1 }
43
- width = { { base : "fit-content" , sm : "max-content" } }
44
- >
40
+ < VStack spacing = { 2 } flex = { 1 } >
45
41
< IndicatorIcon style = { styleObj } />
46
- < Text
47
- fontSize = "xs"
48
- textAlign = "center"
49
- width = { { base : "fit-content" , sm : "max-content" } }
50
- >
42
+ < Text fontSize = "xs" textAlign = "center" maxW = "{40}" >
51
43
< Translation id = { label } />
52
44
</ Text >
53
45
</ VStack >
@@ -76,8 +68,14 @@ const StakingConsiderations = ({ page }: StakingConsiderationsProps) => {
76
68
activeIndex,
77
69
} = useStakingConsiderations ( { page } )
78
70
71
+ const activeStyles = {
72
+ bg : "background.highlight" ,
73
+ color : "body.base" ,
74
+ transition : "background 0.5s, color 0.5s"
75
+ }
76
+
79
77
return (
80
- < Flex flexDir = { { base : "column" , md : "row" } } gap = { 8 } >
78
+ < Flex flexDir = { { base : "column" , md : "row" } } >
81
79
< ButtonDropdown list = { dropdownLinks } hideFrom = { mdBp } />
82
80
{ /* TODO: Improve a11y */ }
83
81
< Box flex = { 1 } hideBelow = { mdBp } >
@@ -92,25 +90,16 @@ const StakingConsiderations = ({ page }: StakingConsiderationsProps) => {
92
90
trackCustomEvent ( matomo )
93
91
} }
94
92
py = { 1 }
95
- px = { 2 }
96
93
cursor = "pointer"
94
+ display = "table"
95
+ w = "full"
97
96
h = { 8 }
97
+ p = "3"
98
+ mb = "0"
99
+ _hover = { activeStyles }
98
100
position = "relative"
99
101
{ ...( idx === activeIndex
100
- ? {
101
- bg : "primary.base" ,
102
- color : "background.base" ,
103
- _after : {
104
- content : `''` ,
105
- position : "absolute" ,
106
- height : 0 ,
107
- width : 0 ,
108
- top : 0 ,
109
- insetInlineStart : "100%" ,
110
- border : "1rem solid transparent" ,
111
- borderInlineStartColor : "primary.base" ,
112
- } ,
113
- }
102
+ ? activeStyles
114
103
: { color : "primary.base" } ) }
115
104
>
116
105
{ title }
@@ -122,7 +111,7 @@ const StakingConsiderations = ({ page }: StakingConsiderationsProps) => {
122
111
< Flex
123
112
alignItems = "center"
124
113
flexDir = "column"
125
- bg = "offBackground "
114
+ bg = "background.highlight "
126
115
flex = { 2 }
127
116
minH = "410px"
128
117
p = { 6 }
0 commit comments