Skip to content

An open-source, faster Devin alternative

TypeScript

fix(web): lighter disabled primary button + slightly-rounded small buttons

Igor Zalutskia1e23912f02e
diff --git a/web/src/components/ui/button.tsx b/web/src/components/ui/button.tsx
index 920272a2..d73666a3 100644
--- a/web/src/components/ui/button.tsx
+++ b/web/src/components/ui/button.tsx
@@ -9,7 +9,8 @@ const buttonVariants = cva(
{
variants: {
variant: {
- default: 'bg-primary text-primary-foreground hover:bg-primary/80',
+ default:
+ 'bg-primary text-primary-foreground hover:bg-primary/80 disabled:border-border disabled:bg-muted disabled:text-muted-foreground disabled:opacity-100',
outline:
'border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50',
secondary:
diff --git a/web/src/index.css b/web/src/index.css
index 6f7bb5c2..7e5193b3 100644
--- a/web/src/index.css
+++ b/web/src/index.css
@@ -91,7 +91,9 @@
--color-chart-5: var(--chart-5);
/* Radius scale (from --radius = 0.375rem) */
- --radius-sm: calc(var(--radius) - 2px);
+ --radius-sm: calc(
+ var(--radius) - 1px
+ ); /* ~3px — small buttons/pills: sharp but a touch rounded */
--radius-md: var(--radius);
--radius-lg: calc(var(--radius) + 2px);
--radius-xl: calc(var(--radius) + 4px);