From 66adce7f8fbf79cc8dea821ea3543454f4d0bc38 Mon Sep 17 00:00:00 2001 From: Cyrus Gray <144336577+graycyrus@users.noreply.github.com> Date: Tue, 23 Jun 2026 21:25:48 +0530 Subject: [PATCH] feat(shell): styled hover/focus tooltips on standalone sidebar icons (#3995) --- .../layout/shell/CollapsedNavRail.tsx | 101 +++++----- .../layout/shell/RootShellLayout.tsx | 36 ++-- .../layout/shell/SidebarHeader.test.tsx | 2 + .../components/layout/shell/SidebarHeader.tsx | 150 ++++++++------- app/src/components/ui/Tooltip.test.tsx | 175 ++++++++++++++++++ app/src/components/ui/Tooltip.tsx | 161 ++++++++++++++++ app/src/components/ui/index.ts | 3 + 7 files changed, 490 insertions(+), 138 deletions(-) create mode 100644 app/src/components/ui/Tooltip.test.tsx create mode 100644 app/src/components/ui/Tooltip.tsx diff --git a/app/src/components/layout/shell/CollapsedNavRail.tsx b/app/src/components/layout/shell/CollapsedNavRail.tsx index c9c71fa1f..a2019f61f 100644 --- a/app/src/components/layout/shell/CollapsedNavRail.tsx +++ b/app/src/components/layout/shell/CollapsedNavRail.tsx @@ -6,6 +6,7 @@ import { useT } from '../../../lib/i18n/I18nContext'; import { trackEvent } from '../../../services/analytics'; import { useAppSelector } from '../../../store/hooks'; import { selectUnreadCount } from '../../../store/notificationSlice'; +import { Tooltip } from '../../ui'; import { NavIcon } from './navIcons'; import { useHomeNav } from './useHomeNav'; @@ -58,63 +59,65 @@ export default function CollapsedNavRail() { return (