@@ -54,8 +54,8 @@ export default function Input({
57− className={cn(className, 'mb1')}
58+ className={cn(className, 'mb1')}
60 ...(disabled && {
60 ...(disabled && {
61 pointerEvents: 'none',
61 pointerEvents: 'none',
@@ -71,8 +71,9 @@ export default function Input({
71 htmlFor={name}>
71 htmlFor={name}>
73 </Flex.Item>
73 </Flex.Item>
74− <Flex.Item as={Flex} className="rel" row>
74+ <Flex.Item as={Flex} row className="rel">
75 <Flex.Item
75 <Flex.Item
76 as={type === 'textarea' ? 'textarea' : 'input'}
77 as={type === 'textarea' ? 'textarea' : 'input'}
77 type={type === 'textarea' ? undefined : type}
78 type={type === 'textarea' ? undefined : type}
@@ -86,21 +87,20 @@ export default function Input({
86 'bg-gray1': disabled,
87 'bg-gray1': disabled,
89− gray4: !active && !touched,
90+ gray4: !(active || touched),
90 black: active || touched,
91 black: active || touched,
93 'b-green3': valid,
94 'b-green3': valid,
94− 'b-black': active && !valid,
95+ 'b-black': !valid && active,
95− 'b-yellow3': !active && touched && error,
96+ 'b-yellow3': !valid && !active && touched && error,
96− 'b-gray2': !active && !error && !valid,
97+ 'b-gray2': !valid && !active && !touched && !error,
99 id={name}
100 id={name}
100 name={name}
101 name={name}
101 onKeyPress={onKeyPress}
102 onKeyPress={onKeyPress}
102 {...input}
103 {...input}
105 {accessory && (
105 {accessory && (