Skip to content

Commit 4cbbc09

Browse files
committed
fix: removing invalid state when input is focused
1 parent c56d1bf commit 4cbbc09

File tree

1 file changed

+0
-36
lines changed

1 file changed

+0
-36
lines changed

src/theme/components/input.ts

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,6 @@ const baseStyle = (props: any) => {
4848
_invalid: {
4949
borderColor: 'error.600',
5050
_hover: { borderColor: 'error.600' },
51-
_focus: {
52-
borderColor: 'error.600',
53-
_stack: {
54-
style: {
55-
outlineWidth: '1px',
56-
outlineColor: `${props.inValidOutlineColor || error[600]}`,
57-
outlineStyle: 'solid',
58-
},
59-
},
60-
},
6151
_stack: {
6252
style: {
6353
outlineWidth: '1px',
@@ -112,16 +102,6 @@ const baseStyle = (props: any) => {
112102
},
113103
},
114104
_hover: { borderColor: 'error.500' },
115-
_focus: {
116-
borderColor: 'error.500',
117-
_stack: {
118-
style: {
119-
outlineWidth: '1px',
120-
outlineColor: `${props.inValidOutlineColor || error[500]}`,
121-
outlineStyle: 'solid',
122-
},
123-
},
124-
},
125105
},
126106
_ios: {
127107
selectionColor: 'warmGray.50',
@@ -230,13 +210,6 @@ function underlinedStyle(props: Record<string, any>) {
230210
boxShadow: `0 1px 0 0 ${props.focusOutlineColor || primary[600]}`,
231211
},
232212
},
233-
_invalid: {
234-
_stack: {
235-
style: {
236-
boxShadow: `0 1px 0 0 ${props.inValidOutlineColor || error[600]}`,
237-
},
238-
},
239-
},
240213
},
241214
_invalid: {
242215
_stack: {
@@ -255,14 +228,6 @@ function underlinedStyle(props: Record<string, any>) {
255228
boxShadow: `0 1px 0 0 ${props.focusOutlineColor || primary[500]}`,
256229
},
257230
},
258-
_invalid: {
259-
_stack: {
260-
style: {
261-
outlineWidth: 0,
262-
boxShadow: `0 1px 0 0 ${props.inValidOutlineColor || error[500]}`,
263-
},
264-
},
265-
},
266231
},
267232
_invalid: {
268233
_stack: {
@@ -273,7 +238,6 @@ function underlinedStyle(props: Record<string, any>) {
273238
},
274239
},
275240
},
276-
277241
borderRadius: 0,
278242
};
279243
}

0 commit comments

Comments
 (0)