Skip to content

A self-hostable bookmark-everything app (links, notes and images) with AI-based automatic tagging and full text search

fix(web): Get rid of focus rings for ghost buttons

MohamedBassemb17bf7d5b404
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",
},