From dee79efbafd7f4c4b978ce6cb065db69c8298b6f Mon Sep 17 00:00:00 2001 From: Almeida Date: Sun, 5 Oct 2025 18:46:59 +0100 Subject: [PATCH] fix: sidebar tab icon (#11141) --- apps/guide/src/app/guide/layout.tsx | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/apps/guide/src/app/guide/layout.tsx b/apps/guide/src/app/guide/layout.tsx index 97db6fca3..dab30f0a7 100644 --- a/apps/guide/src/app/guide/layout.tsx +++ b/apps/guide/src/app/guide/layout.tsx @@ -1,5 +1,5 @@ import { DocsLayout } from 'fumadocs-ui/layouts/docs'; -import type { ReactNode } from 'react'; +import type { CSSProperties, ReactNode } from 'react'; import { baseOptions } from '@/app/layout.config'; import { source } from '@/lib/source'; @@ -13,17 +13,18 @@ export default function Layout({ children }: { readonly children: ReactNode }) { if (!meta || !node.icon) return option; // category selection color based on path src/styles/base.css - const color = `var(--${meta.file.path.split('/')[0]}-color, var(--color-fd-foreground))`; + const color = `var(--${meta.path.split('/')[0]}-color, var(--color-fd-foreground))`; return { ...option, icon: (
{node.icon}