feat: active nav tab uses module accent colour
This commit is contained in:
@@ -321,6 +321,11 @@ function updateNav(path) {
|
||||
|
||||
// Bottom-Nav zur aktiven Seite scrollen
|
||||
scrollNavToActive();
|
||||
|
||||
// Modul-Akzentfarbe auf :root setzen — wird von Nav-CSS gelesen
|
||||
const route = ROUTES.find(r => r.path === path);
|
||||
const accent = route?.module ? getCSSToken(`--module-${route.module}`) : '';
|
||||
document.documentElement.style.setProperty('--active-module-accent', accent || '');
|
||||
}
|
||||
|
||||
function renderError(container, err) {
|
||||
|
||||
Reference in New Issue
Block a user