@@ -37,12 +37,7 @@ const baseStyle = () => {
37
37
style : { outline : 'none' } ,
38
38
cursor : 'auto' ,
39
39
} ,
40
- _stack : {
41
- flexDirection : 'row' ,
42
- alignItems : 'center' ,
43
- // justifyContent: 'space-between',
44
- overflow : 'hidden' ,
45
- } ,
40
+
46
41
_input : {
47
42
bg : 'transparent' ,
48
43
flex : 1 ,
@@ -72,6 +67,19 @@ const baseStyle = () => {
72
67
borderColor : 'muted.300' ,
73
68
} ,
74
69
} ,
70
+ _stack : {
71
+ flexDirection : 'row' ,
72
+ alignItems : 'center' ,
73
+ // justifyContent: 'space-between',
74
+ overflow : 'hidden' ,
75
+ _focus : {
76
+ style : {
77
+ outlineWidth : '1px' ,
78
+ outlineColor : 'primary.600' ,
79
+ outlineStyle : 'solid' ,
80
+ } ,
81
+ } ,
82
+ } ,
75
83
} ,
76
84
_dark : {
77
85
placeholderTextColor : 'text.600' ,
@@ -98,6 +106,19 @@ const baseStyle = () => {
98
106
borderColor : 'muted.700' ,
99
107
} ,
100
108
} ,
109
+ _stack : {
110
+ flexDirection : 'row' ,
111
+ alignItems : 'center' ,
112
+ // justifyContent: 'space-between',
113
+ overflow : 'hidden' ,
114
+ _focus : {
115
+ style : {
116
+ outlineWidth : '3px' ,
117
+ outlineColor : 'primary.500' ,
118
+ outlineStyle : 'solid' ,
119
+ } ,
120
+ } ,
121
+ } ,
101
122
} ,
102
123
} ;
103
124
} ;
@@ -108,7 +129,6 @@ function roundedStyle(props: Record<string, any>) {
108
129
borderRadius : 'full' ,
109
130
borderWidth : '1' ,
110
131
_focus : {
111
- borderWidth : '2' ,
112
132
bg : transparentize ( 'primary.600' , 0.1 ) ( theme ) ,
113
133
} ,
114
134
_invalid : {
@@ -121,7 +141,6 @@ function outlineStyle(props: Record<string, any>) {
121
141
return {
122
142
borderWidth : '1' ,
123
143
_focus : {
124
- borderWidth : '2' ,
125
144
bg : transparentize ( 'primary.600' , 0.1 ) ( theme ) ,
126
145
} ,
127
146
_invalid : {
@@ -132,10 +151,8 @@ function outlineStyle(props: Record<string, any>) {
132
151
function filledStyle ( props : Record < string , any > ) {
133
152
const { theme } = props ;
134
153
return {
135
- borderWidth : '0' ,
136
- borderColor : 'transparent' ,
154
+ borderWidth : '1' ,
137
155
_focus : {
138
- borderWidth : '2' ,
139
156
bg : transparentize ( 'primary.600' , 0.1 ) ( theme ) ,
140
157
} ,
141
158
_hover : {
@@ -149,9 +166,11 @@ function filledStyle(props: Record<string, any>) {
149
166
} ,
150
167
_light : {
151
168
bg : 'muted.100' ,
169
+ borderColor : 'muted.100' ,
152
170
} ,
153
171
_dark : {
154
172
bg : 'muted.800' ,
173
+ borderColor : 'muted.800' ,
155
174
} ,
156
175
} ;
157
176
}
@@ -167,16 +186,27 @@ function unstyledStyle() {
167
186
_focus : {
168
187
bg : 'transparent' ,
169
188
} ,
189
+ _stack : {
190
+ _focus : {
191
+ style : {
192
+ outlineWidth : '0' ,
193
+ } ,
194
+ } ,
195
+ } ,
170
196
} ;
171
197
}
172
198
function underlinedStyle ( ) {
173
199
return {
174
200
borderWidth : '0' ,
175
201
pl : '0' ,
176
202
borderBottomWidth : '1' ,
177
- _focus : {
178
- borderBottomWidth : '2' ,
179
- fontWeight : '500' ,
203
+ _stack : {
204
+ _focus : {
205
+ style : {
206
+ outlineWidth : '0' ,
207
+ boxShadow : '0 1px 0 0 #0891B2' ,
208
+ } ,
209
+ } ,
180
210
} ,
181
211
_invalid : {
182
212
borderBottomWidth : '2' ,
0 commit comments