Skip to content

Commit f70948e

Browse files
committed
More fixes
1 parent 7dc4955 commit f70948e

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

webview-ui/src/components/ui/autosize-textarea.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,10 @@ export const AutosizeTextarea = React.forwardRef<AutosizeTextAreaRef, AutosizeTe
9191
value={value}
9292
ref={textAreaRef}
9393
className={cn(
94-
"flex w-full text-vscode-input-foreground border border-vscode-input-border bg-vscode-input-background rounded-xs ring-offset-background placeholder:text-muted-foreground focus:outline-0 focus-visible:outline-none focus-visible:border-vscode-focusBorder disabled:cursor-not-allowed disabled:opacity-50 scrollbar-hide",
94+
"flex w-full rounded-xs ring-offset-background placeholder:text-muted-foreground focus:outline-0 focus-visible:outline-none focus-visible:border-vscode-focusBorder disabled:cursor-not-allowed disabled:opacity-50 scrollbar-hide",
95+
"border-[var(--vscode-input-border,var(--vscode-input-background))] focus-visible:border-vscode-focusBorder",
96+
"bg-vscode-input-background",
97+
"text-vscode-input-foreground",
9598
className,
9699
)}
97100
onChange={(e) => {

webview-ui/src/components/ui/button.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const buttonVariants = cva(
1919
ghost: "hover:bg-accent hover:text-accent-foreground",
2020
link: "text-primary underline-offset-4 hover:underline",
2121
combobox:
22-
"border border-vscode-input-border bg-vscode-input-background text-muted-foreground shadow-sm hover:bg-transparent",
22+
"border border-[var(--vscode-input-border,var(--vscode-input-background))] focus-visible:border-vscode-focusBorder bg-vscode-input-background hover:bg-transparent text-vscode-input-foreground",
2323
},
2424
size: {
2525
default: "h-7 px-3",

webview-ui/src/components/ui/select.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,10 @@ function SelectTrigger({ className, children, ...props }: React.ComponentProps<t
2222
<SelectPrimitive.Trigger
2323
data-slot="select-trigger"
2424
className={cn(
25-
"border-vscode-input-border data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-vscode-focusBorder aria-invalid:border-destructive flex h-7 w-fit items-center justify-between gap-2 rounded-xs border px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none disabled:cursor-not-allowed disabled:opacity-50 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 cursor-pointer",
25+
"data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground aria-invalid:border-destructive flex h-7 w-fit items-center justify-between gap-2 rounded-xs px-3 py-2 whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none disabled:cursor-not-allowed disabled:opacity-50 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 cursor-pointer",
26+
"border border-[var(--vscode-input-border,var(--vscode-input-background))] aria-expanded:border-vscode-focusBorder focus-visible:border-vscode-focusBorder",
2627
"bg-vscode-input-background hover:bg-transparent",
28+
"text-vscode-input-foreground",
2729
className,
2830
)}
2931
{...props}>

webview-ui/src/components/ui/textarea.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ const Textarea = React.forwardRef<HTMLTextAreaElement, React.ComponentProps<"tex
77
return (
88
<textarea
99
className={cn(
10-
"flex min-h-[60px] w-full text-vscode-input-foreground border border-vscode-input-border bg-vscode-input-background rounded-xs px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus:outline-0 focus-visible:outline-none focus-visible:border-vscode-focusBorder disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
10+
"flex min-h-[60px] w-full rounded-xs px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus:outline-0 focus-visible:outline-none focus-visible:border-vscode-focusBorder disabled:cursor-not-allowed disabled:opacity-50",
11+
"border-[var(--vscode-input-border,var(--vscode-input-background))] focus-visible:border-vscode-focusBorder",
12+
"bg-vscode-input-background",
13+
"text-vscode-input-foreground",
1114
className,
1215
)}
1316
ref={ref}

0 commit comments

Comments
 (0)