-
Notifications
You must be signed in to change notification settings - Fork 27.4k
docs(indexPage.template.html): Highlight current navItem #9970
Comments
I'm not a designer either but highlighting a currently selected item sounds like a good idea. I'm terrible at design so take everything I'm saying with a grain of salt, but IMO an arrow isn't necessary - a different color would do, IMO. PR welcomed - the smaller it is the bigger chance of merging. |
Perhaps you could help me with this @pkozlowski-opensource... I just did a clean clone with an
Any idea what this error could mean? I was hoping to write a test for the functionality I'm adding... Or at least to make sure that no tests are breaking... |
closure is reallly !@#$ing frustrating, seriously. What platform are you using? |
I'm on OS X Yosemite. |
Me too --- I recall I updated to JRE8 at some point, |
This is a new computer, so I'm not totally surprised when the output is:
I'll try to install the JRE8 and see if that fixes it. |
single hyphen for the |
Lol, that's better...
Downloading 8 now. |
That did the trick. We may want to add this to the contributor guidelines :-) |
Having trouble running the docs site locally. Don't know which task to run and can't seem to find docs on it. Any tips? |
|
I must seem so incompetent, but all I see there is |
|
Yeah, this shouldn't be so difficult, but I'm not getting this thing serving up the docs. I ran Anywhere I navigate it's just serving up the filesystem because I have no index.html. I don't know what I'm doing wrong here... |
like I said before, |
Oh, sorry, I don't remember you saying |
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.htmlcurrent: this.currentPage.path === navItem.href
in thenavClass
function indocs.js
.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 thenavClass
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 thecurrent
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.
The text was updated successfully, but these errors were encountered: