From 864cca6cda0842c7bf01a1f1053d018561728641 Mon Sep 17 00:00:00 2001
From: "kemal.earth" <606977+kemaldotearth@users.noreply.github.com>
Date: Tue, 29 Sep 2026 09:50:15 +0100
Subject: [PATCH] fix(design-system): update border radius for menu items
(#50973)
## Problem
Border radiuses for inner items of dropdowns, menus etc. didn't keep up
with recent changes.
## Solution
Adds a token/variable to help keep this consistent across our apps and
components. One caveat is this modifies shadcn components, so I'm open
to alternative ways of doing this.
| Before | After |
|--------|--------|
|
|
|
## Summary by CodeRabbit
* **Style**
* Standardized corner rounding across command items, context menus,
dropdown menus, menubars, select options, and multi-select options.
---
packages/config/css/theme.css | 1 +
packages/ui-patterns/src/multi-select/multi-select.tsx | 2 +-
packages/ui/src/components/shadcn/ui/command.tsx | 2 +-
packages/ui/src/components/shadcn/ui/context-menu.tsx | 8 ++++----
packages/ui/src/components/shadcn/ui/dropdown-menu.tsx | 8 ++++----
packages/ui/src/components/shadcn/ui/menubar.tsx | 10 +++++-----
packages/ui/src/components/shadcn/ui/select.tsx | 2 +-
7 files changed, 17 insertions(+), 16 deletions(-)
diff --git a/packages/config/css/theme.css b/packages/config/css/theme.css
index 4a31e180e0b..5c2e7679ba4 100644
--- a/packages/config/css/theme.css
+++ b/packages/config/css/theme.css
@@ -376,6 +376,7 @@
--breakpoint-xs: 480px;
--width-listbox: 320px;
--radius-panel: 6px;
+ --radius-item: calc(var(--radius-md) - 2px);
--spacing-content: 21px;
--spacing-card: var(--card-padding-x);
--transform-origin-dropdown: var(--radix-dropdown-menu-content-transform-origin);
diff --git a/packages/ui-patterns/src/multi-select/multi-select.tsx b/packages/ui-patterns/src/multi-select/multi-select.tsx
index e707ed93586..c16e8c98cf6 100644
--- a/packages/ui-patterns/src/multi-select/multi-select.tsx
+++ b/packages/ui-patterns/src/multi-select/multi-select.tsx
@@ -48,7 +48,7 @@ const DROPDOWN_GAP = 8
const DROPDOWN_BORDER_HEIGHT = 2
const commandItemClass = cn(
- 'relative text-foreground-light text-left px-2 py-1.5 rounded-xs',
+ 'relative text-foreground-light text-left px-2 py-1.5 rounded-item',
'hover:text-foreground hover:!bg-overlay-hover w-full flex items-center space-x-2',
'peer-data-[value=true]:bg-overlay-hover'
)
diff --git a/packages/ui/src/components/shadcn/ui/command.tsx b/packages/ui/src/components/shadcn/ui/command.tsx
index 97207463274..97b5c1825f5 100644
--- a/packages/ui/src/components/shadcn/ui/command.tsx
+++ b/packages/ui/src/components/shadcn/ui/command.tsx
@@ -163,7 +163,7 @@ const CommandItem = React.forwardRef<