diff --git a/client/src/curriculum/index.scss b/client/src/curriculum/index.scss index 141943068d4c..00258c78f8de 100644 --- a/client/src/curriculum/index.scss +++ b/client/src/curriculum/index.scss @@ -37,4 +37,16 @@ } } } + + .sidebar { + li > em { + background-color: var(--background-toc-active); + border-left: 2px solid var(--category-color); + display: inline-block; + font-style: normal; + font-weight: 600; + padding: 0.25rem 0.25rem 0.25rem 0.5rem; + width: 100%; + } + } } diff --git a/client/src/curriculum/index.tsx b/client/src/curriculum/index.tsx index 66874eecae95..f432fde8415a 100644 --- a/client/src/curriculum/index.tsx +++ b/client/src/curriculum/index.tsx @@ -76,7 +76,9 @@ export function CurriculumLanding(props: HydrationData) { {PLACEMENT_ENABLED && } - {doc.sidebar && } + {doc.sidebar && ( + + )}
diff --git a/client/src/curriculum/module.tsx b/client/src/curriculum/module.tsx index af9179576454..35481e98ab35 100644 --- a/client/src/curriculum/module.tsx +++ b/client/src/curriculum/module.tsx @@ -58,7 +58,9 @@ export function CurriculumModule(props: HydrationData) { {PLACEMENT_ENABLED && } - {doc.sidebar && } + {doc.sidebar && ( + + )}
diff --git a/client/src/curriculum/overview.tsx b/client/src/curriculum/overview.tsx index d60acc05dc0d..cf72ab3c68cd 100644 --- a/client/src/curriculum/overview.tsx +++ b/client/src/curriculum/overview.tsx @@ -59,7 +59,9 @@ export function CurriculumModuleOverview( {PLACEMENT_ENABLED && } - {doc.sidebar && } + {doc.sidebar && ( + + )}
diff --git a/client/src/curriculum/sidebar.tsx b/client/src/curriculum/sidebar.tsx index d64e06e58c26..0c0521c94579 100644 --- a/client/src/curriculum/sidebar.tsx +++ b/client/src/curriculum/sidebar.tsx @@ -1,19 +1,29 @@ import { ModuleIndexEntry } from "../../../libs/types/curriculum"; import "./module.scss"; -export function Sidebar({ sidebar = [] }: { sidebar: ModuleIndexEntry[] }) { +export function Sidebar({ + current = "", + sidebar = [], +}: { + current: string; + sidebar: ModuleIndexEntry[]; +}) { return ( -