Skip to content

An open-source, faster Devin alternative

TypeScript

fix(web): soften the text-input focus border

Igor Zalutski360c9455bf85
diff --git a/web/src/components/form.tsx b/web/src/components/form.tsx
index c428bcc7..78b83134 100644
--- a/web/src/components/form.tsx
+++ b/web/src/components/form.tsx
@@ -37,7 +37,7 @@ export function Select({
id={id}
data-slot="select-trigger"
className={cn(
- 'border-input focus-visible:border-ring data-placeholder:text-muted-foreground flex h-8 w-full items-center justify-between gap-2 rounded-md border bg-transparent px-2.5 text-sm transition-colors outline-none disabled:cursor-not-allowed disabled:opacity-50',
+ 'border-input focus-visible:border-ring/60 data-placeholder:text-muted-foreground flex h-8 w-full items-center justify-between gap-2 rounded-md border bg-transparent px-2.5 text-sm transition-colors outline-none disabled:cursor-not-allowed disabled:opacity-50',
className,
)}
>
@@ -80,7 +80,7 @@ export function Textarea({ className, ...props }: ComponentProps<'textarea'>) {
<textarea
data-slot="textarea"
className={cn(
- 'border-input placeholder:text-muted-foreground focus-visible:border-ring disabled:bg-input/50 aria-invalid:border-destructive flex min-h-20 w-full resize-none rounded-md border bg-transparent px-2.5 py-1.5 text-base transition-colors outline-none disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm',
+ 'border-input placeholder:text-muted-foreground focus-visible:border-ring/60 disabled:bg-input/50 aria-invalid:border-destructive flex min-h-20 w-full resize-none rounded-md border bg-transparent px-2.5 py-1.5 text-base transition-colors outline-none disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm',
className,
)}
{...props}
diff --git a/web/src/components/ui/input.tsx b/web/src/components/ui/input.tsx
index 55094410..4ed6b9fd 100644
--- a/web/src/components/ui/input.tsx
+++ b/web/src/components/ui/input.tsx
@@ -8,7 +8,7 @@ function Input({ className, type, ...props }: React.ComponentProps<'input'>) {
type={type}
data-slot="input"
className={cn(
- 'border-input file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring disabled:bg-input/50 aria-invalid:border-destructive dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 h-8 w-full min-w-0 rounded-md border bg-transparent px-2.5 py-1 text-base transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm',
+ 'border-input file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring/60 disabled:bg-input/50 aria-invalid:border-destructive dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 h-8 w-full min-w-0 rounded-md border bg-transparent px-2.5 py-1 text-base transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm',
className,
)}
{...props}