From 7f177e4e80926ebd23029d894b58f46faa914979 Mon Sep 17 00:00:00 2001 From: Jacksonmills Date: Wed, 13 Nov 2024 12:57:34 -0600 Subject: [PATCH] fix(sidebar-nav): refine hover and disabled styles for nav item tags Streamlined class assignments for improved consistency and maintainability. Hover effects now underline only titles with a span, excluding tags like "New" to avoid unwanted styling. Disabled elements have a unified appearance for better visual clarity, aligned with accessibility standards. These adjustments reduce CSS complexity and enhance styling accuracy. --- apps/www/components/sidebar-nav.tsx | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/apps/www/components/sidebar-nav.tsx b/apps/www/components/sidebar-nav.tsx index c3f8b5bb9c1..2b4ab30eea6 100644 --- a/apps/www/components/sidebar-nav.tsx +++ b/apps/www/components/sidebar-nav.tsx @@ -50,17 +50,20 @@ export function DocsSidebarNavItems({ - {item.title} + + {item.title} + {item.label && ( - + {item.label} )} @@ -68,14 +71,11 @@ export function DocsSidebarNavItems({ ) : ( {item.title} {item.label && ( - + {item.label} )}