rcgit

/ karakeep

Commit b17bf7d5

SHA b17bf7d5b404ae13f843ce605468d1ea6706dccb
Author MohamedBassem <me at mbassem dot com>
Author Date 2025-04-06 23:11 +0100
Committer MohamedBassem <me at mbassem dot com>
Commit Date 2025-04-06 23:11 +0100
Parent(s) 3f2d3560dc04 (diff)
Tree ce2e0b3de5cc

patch snapshot

fix(web): Get rid of focus rings for ghost buttons
File + - Graph
M apps/web/components/ui/button.tsx +2 -1
1 file(s) changed, 2 insertions(+), 1 deletions(-)

apps/web/components/ui/button.tsx

diff --git a/apps/web/components/ui/button.tsx b/apps/web/components/ui/button.tsx
index 6caff414..6857d80d 100644
--- a/apps/web/components/ui/button.tsx
+++ b/apps/web/components/ui/button.tsx
@@ -26,7 +26,8 @@ const buttonVariants = cva(
           "border border-input bg-background hover:bg-accent hover:text-accent-foreground",
         secondary:
           "bg-secondary text-secondary-foreground hover:bg-secondary/80",
-        ghost: "hover:bg-accent hover:text-accent-foreground",
+        ghost:
+          "hover:bg-accent hover:text-accent-foreground focus-visible:ring-0 focus-visible:ring-offset-0",
         border: "border border-input hover:bg-accent",
         link: "text-primary underline-offset-4 hover:underline",
       },