From 5e4bd1dc3e0cdf9770a34416d69e053a1eabcd0a Mon Sep 17 00:00:00 2001 From: Pawel Kosiec Date: Tue, 28 Jul 2026 12:57:22 +0200 Subject: [PATCH 1/2] fix(appkit-ui): remove stray focus ring on Command input and menu items MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A global `:focus-visible` rule in globals.css paints a box-shadow ring on every keyboard-focused element. It lives in @layer base, so components with their own `focus-visible:ring-*` (Input, Button, Select, ...) override it via @layer utilities and look correct. Bare focusables with no own ring — CommandInput and dropdown/context/menubar item slots — fall through to the global rule and show an unexpected double-line ring absent from upstream shadcn (which deliberately gives these no ring). Add `focus-visible:shadow-none` to those slots so they match shadcn. `shadow-none` emits a raw box-shadow utility that overrides the base-layer rule; `ring-0` would not, since it only sets --tw-ring-shadow. The global rule is intentionally left intact for other bare focusables. Signed-off-by: Pawel Kosiec --- packages/appkit-ui/src/react/ui/command.tsx | 2 +- packages/appkit-ui/src/react/ui/context-menu.tsx | 8 ++++---- packages/appkit-ui/src/react/ui/dropdown-menu.tsx | 8 ++++---- packages/appkit-ui/src/react/ui/menubar.tsx | 10 +++++----- 4 files changed, 14 insertions(+), 14 deletions(-) diff --git a/packages/appkit-ui/src/react/ui/command.tsx b/packages/appkit-ui/src/react/ui/command.tsx index 93f50be32..391a97767 100644 --- a/packages/appkit-ui/src/react/ui/command.tsx +++ b/packages/appkit-ui/src/react/ui/command.tsx @@ -74,7 +74,7 @@ function CommandInput({ Date: Tue, 28 Jul 2026 13:29:40 +0200 Subject: [PATCH 2/2] fix(appkit-ui): remove stray focus ring on Select items SelectItem used the same background-based focus pattern as the menu components (focus:bg-accent + outline-hidden) without cancelling the global :focus-visible box-shadow, leaving a stray ring on keyboard navigation. Add focus-visible:shadow-none to match the menu fix. Signed-off-by: Pawel Kosiec --- packages/appkit-ui/src/react/ui/select.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/appkit-ui/src/react/ui/select.tsx b/packages/appkit-ui/src/react/ui/select.tsx index c55f529f5..5d936ea15 100644 --- a/packages/appkit-ui/src/react/ui/select.tsx +++ b/packages/appkit-ui/src/react/ui/select.tsx @@ -120,7 +120,7 @@ function SelectItem({