Skip to content

Commit bd1670e

Browse files
committed
fix: use VSCode theme color for outline button borders
The outline button variant was using border-foreground/50 which caused visibility issues in some light themes. Changed to use border-vscode-input-border which is a VSCode theme color designed to work across all themes. This fixes the follow-up question suggestion buttons that were hard to see in certain light themes.
1 parent dbaaef7 commit bd1670e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const buttonVariants = cva(
1414
ghost: "hover:bg-accent hover:text-accent-foreground",
1515
destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90",
1616
outline:
17-
"border border-foreground/50 text-secondary-foreground bg-transparent hover:bg-secondary hover:text-accent-foreground",
17+
"border border-vscode-input-border text-secondary-foreground bg-transparent hover:bg-secondary hover:text-accent-foreground",
1818
link: "text-primary underline-offset-4 hover:underline",
1919
combobox:
2020
"border border-vscode-dropdown-border focus-visible:border-vscode-focusBorder bg-vscode-dropdown-background hover:bg-transparent text-vscode-dropdown-foreground font-normal",

0 commit comments

Comments
 (0)