Skip to content
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
@kentcdodds

Description

@kentcdodds

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

current look

What I propose

screen shot 2014-11-08 at 6 26 33 am

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 the navClass function in docs.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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions