fix(template): sidebar/footer menu links invisible in light theme (.nav-link color leak) #181
Reference in New Issue
Block a user
Delete Branch "fix/nav-link-color-leak"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Menu links in light-background positions (sidebar, footer, bottom) render white-on-white / invisible in the light theme — reported on https://mokoconsulting.tech/legal/privacy-policy (right-hand Support menu).
Root cause
The global
.nav-linkrule setcolor: var(--nav-link-color), and the theme defines--nav-link-color: whitefor the dark header navbar. Any Joomla menu module using Bootstrap.nav-link(sidebar/footer/bottom) inherited that white on a light surface. Confirmed live via computed styles + CSS rule inspection.Fix
Point the global
.nav-linkat--link-color(theme-aware:#224faalight,#8ab4f8dark). The header navbar keeps white via its own higher-specificity.container-header .nav-linkrule; the drawer (.offcanvas .mod-menu .nav-link) and topbar (.container-topbar a) have their own rules — all unaffected.1-line CSS change + changelog. Verified regression-safe against header/drawer/topbar surfaces.
Wiki reminder: docs are wiki-first -- if this PR changes behavior, usage, config, or standards, please update the repo wiki before/after merge. (non-blocking)
c38d41a8f0to7870d1a5c0