From 3d59dc030671d29cec22fd1c784d11609aabbdaa Mon Sep 17 00:00:00 2001 From: Matthew Lipski Date: Thu, 6 Jun 2024 13:27:14 +0200 Subject: [PATCH 1/2] Removed ShadCN focus global CSS --- packages/shadcn/src/style.css | 4 ---- 1 file changed, 4 deletions(-) diff --git a/packages/shadcn/src/style.css b/packages/shadcn/src/style.css index 9bf3956f8a..b1386faa1b 100644 --- a/packages/shadcn/src/style.css +++ b/packages/shadcn/src/style.css @@ -73,10 +73,6 @@ @apply bg-background text-foreground; } -:focus-visible { - outline: none; -} - [data-radix-popper-content-wrapper] { z-index: 99999 !important; } From 684edb4dc4a16712e0f97ad7438a50103a373534 Mon Sep 17 00:00:00 2001 From: Matthew Lipski Date: Thu, 6 Jun 2024 14:38:28 +0200 Subject: [PATCH 2/2] Re-added scoped CSS rule --- packages/shadcn/src/style.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/shadcn/src/style.css b/packages/shadcn/src/style.css index b1386faa1b..21ae5348e8 100644 --- a/packages/shadcn/src/style.css +++ b/packages/shadcn/src/style.css @@ -77,6 +77,10 @@ z-index: 99999 !important; } +.bn-editor:focus-visible { + outline: none; +} + .bn-side-menu { display: flex; justify-content: center;