@@ -8,20 +8,24 @@ const variantSolid = defineStyle((props) => {
8
8
9
9
const bg = mode ( 'blackAlpha.800' , 'grey.10' ) ( props ) ;
10
10
const color = 'white' ;
11
- const hoverBg = mode ( 'blackAlpha.800' , 'grey.10' ) ( props ) ;
11
+ const hoverBg = mode ( 'blackAlpha.800' , 'white' ) ( props ) ;
12
+ const hoverColor = mode ( 'blackAlpha.800' , 'black' ) ( props ) ;
12
13
const activeBg = hoverBg ;
13
14
14
15
return {
15
16
bg,
16
17
color,
17
18
_hover : {
19
+ color : hoverColor ,
18
20
bg : hoverBg ,
19
21
_disabled : {
20
- bg,
22
+ bg : "black" ,
23
+ color : "grey.50"
21
24
} ,
22
25
} ,
23
26
_disabled : {
24
- opacity : 0.2 ,
27
+ bg : "black" ,
28
+ color : "grey.50"
25
29
} ,
26
30
// According to design there is no "active" or "pressed" state
27
31
// It is simply should be the same as the "hover" state
@@ -38,10 +42,10 @@ const variantOutline = defineStyle((props) => {
38
42
39
43
const bg = 'transparent' ;
40
44
41
- const color = isGrayTheme ? mode ( 'blackAlpha.800' , 'whiteAlpha.800 ' ) ( props ) : mode ( `${ c } .600` , `${ c } .300` ) ( props ) ;
42
- const borderColor = isGrayTheme ? mode ( 'gray.200' , 'grey.10 ' ) ( props ) : mode ( `${ c } .600` , `${ c } .300` ) ( props ) ;
45
+ const color = isGrayTheme ? mode ( 'blackAlpha.800' , 'white ' ) ( props ) : mode ( `${ c } .600` , `${ c } .300` ) ( props ) ;
46
+ const borderColor = isGrayTheme ? mode ( 'gray.200' , 'grey.30 ' ) ( props ) : mode ( `${ c } .600` , `${ c } .300` ) ( props ) ;
43
47
44
- const selectedBg = isGrayTheme ? mode ( 'blue.50' , 'grey.10 ' ) ( props ) : mode ( `${ c } .50` , 'gray.600' ) ( props ) ;
48
+ const selectedBg = isGrayTheme ? mode ( 'blue.50' , 'grey.30 ' ) ( props ) : mode ( `${ c } .50` , 'gray.600' ) ( props ) ;
45
49
const selectedColor = mode ( 'blue.600' , 'gray.50' ) ( props ) ;
46
50
47
51
return {
@@ -52,9 +56,9 @@ const variantOutline = defineStyle((props) => {
52
56
borderColor : isPurple ? 'cyan' : borderColor ,
53
57
bg,
54
58
_hover : {
55
- color : 'link_hovered' ,
56
- borderColor : 'link_hovered' ,
57
- bg,
59
+ color,
60
+ borderColor : color ,
61
+ bg : 'grey.30' ,
58
62
span : {
59
63
color : 'link_hovered' ,
60
64
} ,
@@ -69,8 +73,8 @@ const variantOutline = defineStyle((props) => {
69
73
// According to design there is no "active" or "pressed" state
70
74
// It is simply should be the same as the "hover" state
71
75
_active : {
72
- color : 'link_hovered' ,
73
- borderColor : 'link_hovered' ,
76
+ color,
77
+ borderColor : color ,
74
78
bg,
75
79
span : {
76
80
color : 'link_hovered' ,
@@ -98,16 +102,20 @@ const variantRadioGroup = defineStyle((props) => {
98
102
const outline = runIfFn ( variantOutline , props ) ;
99
103
const bgColor = mode ( 'blue.50' , 'gray.800' ) ( props ) ;
100
104
const selectedTextColor = mode ( 'blue.700' , 'gray.50' ) ( props ) ;
105
+ const hoverTextColor = mode ( 'blue.700' , 'black' ) ( props ) ;
106
+ const hoverBgColor = mode ( 'blue.700' , 'white' ) ( props ) ;
107
+
101
108
102
109
return {
103
110
...outline ,
104
- fontWeight : 500 ,
111
+ fontWeight : 400 ,
105
112
cursor : 'pointer' ,
106
113
bgColor : 'none' ,
107
114
borderColor : bgColor ,
108
115
_hover : {
116
+ bg : hoverBgColor ,
109
117
borderColor : bgColor ,
110
- color : 'link_hovered' ,
118
+ color : hoverTextColor ,
111
119
} ,
112
120
_active : {
113
121
bgColor : 'none' ,
@@ -288,10 +296,11 @@ const sizes = {
288
296
px : 4 ,
289
297
} ) ,
290
298
sm : defineStyle ( {
291
- h : 8 ,
299
+ h : 'unset' ,
292
300
minW : 'unset' ,
293
301
fontSize : 'sm' ,
294
- px : 3 ,
302
+ py : '12px' ,
303
+ px : '24px'
295
304
} ) ,
296
305
xs : defineStyle ( {
297
306
h : 6 ,
0 commit comments