From c77e5f24ff1896eb5dd0d3fd45e6da49b3c24c65 Mon Sep 17 00:00:00 2001 From: Prince gupta Date: Sat, 13 Dec 2025 18:09:08 +0530 Subject: [PATCH 1/4] Added accessible hover tooltips for the Face Scanner and Profile icons to improve discoverability and reduce accidental clicks. --- README.md | 3 + frontend/src/components/Media/ImageCard.tsx | 2 +- .../components/Navigation/Navbar/Navbar.tsx | 45 +++++++++--- landing-page/src/components/ui/Features.tsx | 71 +++++++++++++++---- 4 files changed, 100 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index 595889480..edf2b49d7 100644 --- a/README.md +++ b/README.md @@ -63,3 +63,6 @@ Handles file system operations and provides a secure bridge between the frontend --- Our Code of Conduct: [CODE_OF_CONDUCT.md](./CODE_OF_CONDUCT.md) + +Gallery feature cards expand only after an intentional hover on desktop to prevent accidental interactions. Hover effects are disabled on touch devices. + diff --git a/frontend/src/components/Media/ImageCard.tsx b/frontend/src/components/Media/ImageCard.tsx index 0cc6a715a..a6ce358be 100644 --- a/frontend/src/components/Media/ImageCard.tsx +++ b/frontend/src/components/Media/ImageCard.tsx @@ -102,4 +102,4 @@ export function ImageCard({ ); -} +} \ No newline at end of file diff --git a/frontend/src/components/Navigation/Navbar/Navbar.tsx b/frontend/src/components/Navigation/Navbar/Navbar.tsx index c565b7f6d..ef28b7898 100644 --- a/frontend/src/components/Navigation/Navbar/Navbar.tsx +++ b/frontend/src/components/Navigation/Navbar/Navbar.tsx @@ -1,3 +1,10 @@ +import { + Tooltip, + TooltipContent, + TooltipProvider, + TooltipTrigger, +} from '@/components/ui/tooltip'; + import { Input } from '@/components/ui/input'; import { ThemeSelector } from '@/components/ThemeToggle'; import { Search } from 'lucide-react'; @@ -63,7 +70,19 @@ export function Navbar() { {/* FaceSearch Dialog */} - + + + +
+ +
+
+ + Face Scanner + +
+
+ +