TypeScript
style: remove the scale-on-press bounce from all buttons
Vipul Kumardcdcec2b3b98
diff --git a/src/app/globals.css b/src/app/globals.cssindex eeb460d..4fa8aca 100644--- a/src/app/globals.css+++ b/src/app/globals.css@@ -278,14 +278,11 @@font-feature-settings: "salt" 1;}-/* Pressable feedback — every button should feel like it heard you */+/* Pressable elements: smooth colour/opacity changes only — no scale "bounce". */@utility press {- transition-property: transform, background-color, border-color, color, box-shadow, opacity;+ transition-property: background-color, border-color, color, box-shadow, opacity;transition-duration: 160ms;transition-timing-function: var(--ease-out);- &:active:not(:disabled) {- transform: scale(0.97);- }}/* Accent surface: the Figma gradient bitmap + 1px ring + top highlight */diff --git a/src/components/shell/global-search.tsx b/src/components/shell/global-search.tsxindex 45fbac2..9401e84 100644--- a/src/components/shell/global-search.tsx+++ b/src/components/shell/global-search.tsx@@ -29,7 +29,7 @@ export function GlobalSearchTrigger() {<buttontype="button"onClick={() => openOverlay({ kind: "search" })}- className="press flex h-[30px] w-[30px] items-center justify-center gap-2 rounded-lg border border-control bg-surface text-left outline-none transition-[border-color,box-shadow] duration-150 hover-fine:border-segment focus-visible:ring-3 focus-visible:ring-brand/15 md:w-48 md:justify-start md:px-2.5 md:active:scale-100 xl:w-60"+ className="press flex h-[30px] w-[30px] items-center justify-center gap-2 rounded-lg border border-control bg-surface text-left outline-none transition-[border-color,box-shadow] duration-150 hover-fine:border-segment focus-visible:ring-3 focus-visible:ring-brand/15 md:w-48 md:justify-start md:px-2.5 xl:w-60"aria-label="Search"aria-keyshortcuts="Meta+K">diff --git a/src/components/time-off/stats-panel.tsx b/src/components/time-off/stats-panel.tsxindex a760262..fa9c241 100644--- a/src/components/time-off/stats-panel.tsx+++ b/src/components/time-off/stats-panel.tsx@@ -105,7 +105,7 @@ export function StatsPanel({ onShowPending }: { onShowPending: () => void }) {className="group relative flex w-full shrink-0 items-center gap-3 py-4 pr-2 text-left outline-none before:absolute before:-inset-x-2 before:inset-y-1.5 before:rounded-lg before:transition-colors before:duration-150 hover-fine:before:bg-hover focus-visible:before:ring-2 focus-visible:before:ring-brand/40"><span- className="relative flex size-9 shrink-0 items-center justify-center overflow-hidden rounded-[10px] transition-transform duration-150 ease-(--ease-out) group-active:scale-[0.96]"+ className="relative flex size-9 shrink-0 items-center justify-center overflow-hidden rounded-[10px]"style={{ background: stat.tint }}><Image src={`/icons/${stat.icon}.svg`} alt="" width={20} height={20} unoptimized />diff --git a/src/components/ui/button.tsx b/src/components/ui/button.tsxindex 953b078..739186b 100644--- a/src/components/ui/button.tsx+++ b/src/components/ui/button.tsx@@ -4,7 +4,7 @@ import { cn } from "cn"import { Slot } from "radix-ui"const buttonVariants = cva(- "group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding t-14 salt font-medium whitespace-nowrap outline-none select-none transition-[transform,background-color,border-color,color,box-shadow,opacity] duration-150 ease-(--ease-out) focus-visible:ring-3 focus-visible:ring-ring/40 active:not-disabled:scale-[0.97] disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-3.5",+ "group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding t-14 salt font-medium whitespace-nowrap outline-none select-none transition-[background-color,border-color,color,box-shadow,opacity] duration-150 ease-(--ease-out) focus-visible:ring-3 focus-visible:ring-ring/40 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-3.5",{variants: {variant: {