Skip to content

Commit ba5d157

Browse files
committed
fix: remove light-theme styles from chat auth components
- Remove white backgrounds and light focus rings from OTP inputs in email auth - Remove light-theme focus styles from email and password inputs - Update Label import to use @/components/emcn in password auth - Maintain error state styling while removing light-theme overrides
1 parent a814db7 commit ba5d157

File tree

2 files changed

+5
-13
lines changed

2 files changed

+5
-13
lines changed

apps/sim/app/chat/components/auth/email/email-auth.tsx

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -225,10 +225,9 @@ export default function EmailAuth({ identifier, onAuthSuccess }: EmailAuthProps)
225225
onChange={handleEmailChange}
226226
onKeyDown={handleEmailKeyDown}
227227
className={cn(
228-
'rounded-[10px] shadow-sm transition-colors focus:border-gray-400 focus:ring-2 focus:ring-gray-100',
229228
showEmailValidationError &&
230229
emailErrors.length > 0 &&
231-
'border-red-500 focus:border-red-500 focus:ring-red-100 focus-visible:ring-red-500'
230+
'border-red-500 focus:border-red-500'
232231
)}
233232
autoFocus
234233
/>
@@ -270,13 +269,7 @@ export default function EmailAuth({ identifier, onAuthSuccess }: EmailAuthProps)
270269
<InputOTPSlot
271270
key={index}
272271
index={index}
273-
className={cn(
274-
'!rounded-[10px] h-12 w-12 border bg-white text-center font-medium text-lg shadow-sm transition-all duration-200',
275-
'border-gray-300 hover:border-gray-400',
276-
'focus:border-gray-400 focus:outline-none focus:ring-2 focus:ring-gray-100',
277-
authError &&
278-
'border-red-500 focus:border-red-500 focus:ring-red-100'
279-
)}
272+
className={cn('!rounded-[10px] h-12 w-12', authError && 'border-red-500')}
280273
/>
281274
))}
282275
</InputOTPGroup>

apps/sim/app/chat/components/auth/password/password-auth.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
import { type KeyboardEvent, useState } from 'react'
44
import { createLogger } from '@sim/logger'
55
import { Eye, EyeOff } from 'lucide-react'
6-
import { Input } from '@/components/emcn'
7-
import { Label } from '@/components/ui/label'
6+
import { Input, Label } from '@/components/emcn'
87
import { cn } from '@/lib/core/utils/cn'
98
import AuthBackground from '@/app/(auth)/components/auth-background'
109
import { BrandedButton } from '@/app/(auth)/components/branded-button'
@@ -122,10 +121,10 @@ export default function PasswordAuth({ identifier, onAuthSuccess }: PasswordAuth
122121
onChange={handlePasswordChange}
123122
onKeyDown={handleKeyDown}
124123
className={cn(
125-
'rounded-[10px] pr-10 shadow-sm transition-colors focus:border-gray-400 focus:ring-2 focus:ring-gray-100',
124+
'pr-10',
126125
showValidationError &&
127126
passwordErrors.length > 0 &&
128-
'border-red-500 focus:border-red-500 focus:ring-red-100 focus-visible:ring-red-500'
127+
'border-red-500 focus:border-red-500'
129128
)}
130129
autoFocus
131130
/>

0 commit comments

Comments
 (0)