This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
docs(indexPage.template.html): Highlight current navItem #9970
Closed
Description
I think it would be useful to know which navItem you're on, especially on the guide pages. I'm no designer, but something like this could be useful..
How it is now
What I propose
It's much easier to identify what your current position is.
Changes required:
<i class="glyphicon glyphicon-arrow-right"></i>
the navItem repeat in indexPage.template.html- The addition of
current: this.currentPage.path === navItem.href
in thenavClass
function indocs.js
- The addition of
.current
docs.css
to.nav-index-group .nav-index-listing
which will set the color and display or hide of the icon. The color I'm using is#B52E31
which is equal the dark part of the angular logo, and the arrow has a padding of 8px.
As a side, I noticed that there's an active
class in the navClass
function that appears to always resolve to true for every nav item leading to that class being added to every nav item... I'm not sure what it's purpose is, but if it's not in use, then we could change the expression and css properties to match what I propose for the current
class to accomplish this as well...
I'm happy to submit a PR to do this, but I thought I'd check whether something like this would be acceptable first.