From 04f2dfc229f19b2551ce3343196959c624a1c811 Mon Sep 17 00:00:00 2001 From: TalexDreamSoul Date: Thu, 2 Jul 2026 09:45:21 -0700 Subject: [PATCH] fix: polish kumo dialog and select styling --- app/globals.css | 20 +++++++++++ components/ui/dialog.tsx | 11 ++++-- components/ui/select.tsx | 9 ++++- .../OrganizationManagementClient.tsx | 35 +++++++------------ 4 files changed, 49 insertions(+), 26 deletions(-) diff --git a/app/globals.css b/app/globals.css index dfc8056..41f1a57 100644 --- a/app/globals.css +++ b/app/globals.css @@ -111,6 +111,17 @@ a, } } +@keyframes dialog-panel-enter { + from { + opacity: 0; + transform: translate(-50%, -48%) scale(0.97); + } + to { + opacity: 1; + transform: translate(-50%, -50%) scale(1); + } +} + .page-enter { animation: page-enter 180ms ease-out both; } @@ -119,6 +130,14 @@ a, animation: page-enter 160ms ease-out both; } +.dialog-panel-enter { + animation: dialog-panel-enter 160ms ease-out both; +} + +:where([role="presentation"].fixed.inset-0.bg-kumo-recessed) { + z-index: 40; +} + .loading-progress { width: 55%; animation: loading-progress 900ms ease-in-out infinite; @@ -127,6 +146,7 @@ a, @media (prefers-reduced-motion: reduce) { .page-enter, .table-row-enter, + .dialog-panel-enter, .loading-progress { animation: none; } diff --git a/components/ui/dialog.tsx b/components/ui/dialog.tsx index a6506e1..3e95d29 100644 --- a/components/ui/dialog.tsx +++ b/components/ui/dialog.tsx @@ -17,6 +17,9 @@ type DialogProps = { className?: string; }; +const kumoBackdropClassNames = + "fixed inset-0 bg-kumo-recessed opacity-80 transition-all duration-150 data-ending-style:opacity-0 data-starting-style:opacity-0"; + export function Dialog({ open, title, @@ -37,14 +40,16 @@ export function Dialog({ > -
+
- {title} + {title} {description ? {description} : null}