@@ -82,7 +82,9 @@ export function SidebarVariantedNode({ node, depth, renderOptions }: SidebarVari
8282 { node . children . map ( ( variant ) => {
8383 const href = slugToHref ( variant . pointsTo ?? variant . slug ) ;
8484 // Process icon properly by passing the full variant object
85- const icon = variant . icon ? processIcon ( variant , undefined , forceClientRender ) : undefined ;
85+ const icon = variant . icon
86+ ? processIcon ( variant , undefined , forceClientRender )
87+ : undefined ;
8688 // Get pre-resolved image from renderOptions (resolved on server)
8789 const image = renderOptions . variantImages ?. [ variant . variantId ] ;
8890
@@ -102,8 +104,8 @@ export function SidebarVariantedNode({ node, depth, renderOptions }: SidebarVari
102104 { ( image || icon ) && (
103105 < div
104106 className = { cn (
105- "m-0.5 flex h-[36px] w-[36px] shrink-0 items-center justify-center overflow-hidden rounded-2 p-0.5" ,
106- icon && ! image && "border border-(color:--grayscale-a5) "
107+ "m-0.5 flex h-[36px] w-[36px] shrink-0 items-center justify-center overflow-hidden rounded-2 p-0.5 text-current " ,
108+ icon && ! image && "border border-current/30 "
107109 ) }
108110 >
109111 { image || icon }
@@ -112,11 +114,11 @@ export function SidebarVariantedNode({ node, depth, renderOptions }: SidebarVari
112114
113115 { /* Title and Subtitle */ }
114116 < div className = "flex flex-1 flex-col gap-1" >
115- < p className = "font-bold leading-tight lg:text-sm" >
117+ < p className = "font-bold leading-tight text-current lg:text-sm" >
116118 { variant . title }
117119 </ p >
118120 { variant . subtitle && (
119- < p className = "text-xs leading-tight opacity-60" >
121+ < p className = "text-xs leading-tight text-current opacity-60" >
120122 { variant . subtitle }
121123 </ p >
122124 ) }
0 commit comments