You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(appkit-ui): remove stray focus ring on Command input and menu items (#494)
* fix(appkit-ui): remove stray focus ring on Command input and menu items
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 <pawel.kosiec@databricks.com>
* 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 <pawel.kosiec@databricks.com>
---------
Signed-off-by: Pawel Kosiec <pawel.kosiec@databricks.com>
0 commit comments