[UI] TOC back-link text fades to near-invisible on hover in dark mode (Handbook, Learn chapters, Legal, Sistent)
Description
On the left sidebar Table of Contents, the back link at the top (e.g. "< Table Of Contents", "< Introduction To Meshery") is white in dark mode. On hover it turns into #3c494f, a dark charcoal, on the #121212 page background.
Affected pages:
- Handbook: https://layer5.io/community/handbook/repository-overview
- Learn chapter: https://layer5.io/learn/learning-paths/mastering-meshery/introduction-to-meshery/meshery/configuring-meshery
- Legal: https://layer5.io/company/legal/privacy
- Sistent: https://layer5.io/projects/sistent/identity/color
Root cause: the hover colour is hardcoded to #3c494f in four TOC style files, so it does not follow the theme.
Expected Behavior
The back link stays clearly visible on hover in both themes. Swap the hardcoded value for the existing theme token ${(props) => props.theme.green00B39FToGreen3C494F} in each file. It resolves to #3C494F in light mode, so light mode looks the same as now, and to #00B39F (brand teal) in dark mode.
Screenshots
Dark mode, back link hovered (red box), live site:
| Page | Normal | On hover | Background |
|---|---|---|---|
| Handbook | rgb(255,255,255) |
#3c494f |
#121212 |
| Learn chapter | rgb(255,255,255) |
#3c494f |
#121212 |
| Legal | rgb(255,255,255) |
#3c494f |
#121212 |
| Sistent | rgb(255,255,255) |
#3c494f |
#121212 |
Environment:
- Host OS: Windows 11
- Browser: Chrome
I'd like to work on this if it is still free?
Hi! I'm interested in contributing to this issue.
I'm a beginner frontend developer familiar with HTML, CSS and JavaScript. I've worked on responsive layouts in my own projects and would like to learn by contributing to Layer5.
I have read the contribution guidelines and would be happy to share my proposed approach.
Thank you!
I made a pull request to fix it https://github.com/its-noid-dev/layer5/pull/2