From c31f72e5bb7c67f56e62b4ba140df4dd707fa84f Mon Sep 17 00:00:00 2001 From: Anish Sarkar <104695310+AnishSarkar22@users.noreply.github.com> Date: Wed, 8 Jul 2026 00:59:16 +0530 Subject: [PATCH] refactor(sidebar): simplify NotificationsDropdown aria-label and adjust Sidebar layout - Updated aria-label in NotificationsDropdown for improved accessibility and clarity. - Adjusted Sidebar layout to enhance spacing and visual consistency. --- .../components/layout/ui/sidebar/NotificationsDropdown.tsx | 6 +----- surfsense_web/components/layout/ui/sidebar/Sidebar.tsx | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/surfsense_web/components/layout/ui/sidebar/NotificationsDropdown.tsx b/surfsense_web/components/layout/ui/sidebar/NotificationsDropdown.tsx index f9441d2c3..4fe035ec2 100644 --- a/surfsense_web/components/layout/ui/sidebar/NotificationsDropdown.tsx +++ b/surfsense_web/components/layout/ui/sidebar/NotificationsDropdown.tsx @@ -274,11 +274,7 @@ export function NotificationsDropdown({ type="button" variant="ghost" size="icon" - aria-label={ - notifications.totalUnreadCount > 0 - ? `Notifications, ${unreadLabel} unread` - : "Notifications" - } + aria-label="Notifications" className={cn( "relative h-10 w-10 rounded-lg text-muted-foreground hover:bg-accent hover:text-accent-foreground", open && "bg-accent text-accent-foreground" diff --git a/surfsense_web/components/layout/ui/sidebar/Sidebar.tsx b/surfsense_web/components/layout/ui/sidebar/Sidebar.tsx index d1a568fa9..483d3a43d 100644 --- a/surfsense_web/components/layout/ui/sidebar/Sidebar.tsx +++ b/surfsense_web/components/layout/ui/sidebar/Sidebar.tsx @@ -201,7 +201,7 @@ export function Sidebar({