Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

fix(ui): button popup layout shift on click (#50468)

Anthony Lio85f19367ecd7
diff --git a/packages/ui/src/components/Button/Button.tsx b/packages/ui/src/components/Button/Button.tsx
index c8b838bad56..55ce1a8c209 100644
--- a/packages/ui/src/components/Button/Button.tsx
+++ b/packages/ui/src/components/Button/Button.tsx
@@ -21,7 +21,7 @@ const buttonVariants = cva(
duration-200
rounded-md
transition-[background-color,border-color,color,scale]
- motion-safe:active:scale-[0.97]
+ [&:not([aria-haspopup])]:motion-safe:active:scale-[0.97]
focus-ring
border
`,