[UI] Active in-page navigation link never bolds: `font-weight: 5000` is an invalid CSS value
Description
Five stylesheets set font-weight: 5000 on the .active state of an in-page ("on this page") navigation link. font-weight accepts numeric values in the range 1–1000; 5000 is out of range, so the declaration is invalid and the browser drops it. The active-section highlight therefore never renders bold.
Affected locations:
| File | Line |
|---|---|
src/components/SistentNavigation/intra-page.js |
33 |
src/components/legal-navigation/intra-page.js |
26 |
src/sections/Projects/Sistent/sistent.style.js |
445 |
src/sections/Community/Handbook/Handbook.style.js |
350 |
src/sections/Community/Adventures-of-Five/adventures.style.js |
407 |
In the two intra-page.js files the effect is worse than a missing bold. The rule reads:
.list {
color: #000000;
}
.active {
font-weight: 5000; /* invalid, dropped */
color: #000000; /* identical to .list */
}
Because the weight is dropped and the colour matches the inactive state, .active produces no visual change at all — there is no indication of which section the reader is currently on.
Pages affected include the Sistent documentation pages (e.g. https://layer5.io/projects/sistent/components/table), the Handbook, the legal pages, and Adventures of Five.
Expected Behavior
The active entry in the in-page navigation should be visually distinct from the inactive entries — a valid weight such as font-weight: 700 (or bold), and in the intra-page.js cases an .active colour that actually differs from .list.
Worth noting while fixing: both intra-page.js files hardcode color: #000000 rather than using a theme token, so these links are near-invisible in dark mode. Switching to props.theme.* would address the active state and dark mode together, matching how sistent.style.js already does it.
Screenshots
N/A — reproducible by inspecting any .active in-page nav link in devtools; the font-weight declaration shows as invalid/struck-through.
Environment:
- Host OS: any
- Browser: any
I would like to work on this issue. Could you please assign it to me?
Could you assign this to me. Im a newcomer and trying to participate in LFX mentorship ( term 3)
I'd like to work on this issue. Could you please assign it to me?
Proposed fix:
#1. Change font-weight: 5000 to font-weight: 700 in all five files.
#2. In the two intra-page.js files, replace the hardcoded color: #000000 with the theme token props.theme.secondaryColor so .active is visually distinct and works correctly in dark mode. This is the same approach already used in sistent.style.js for its active link.
These are purely CSS value changes.
@PARTH-TUSSLE @dhruveshmishra @Maanvi212006