Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit f30163e

Browse files
Kent C. Doddspkozlowski-opensource
Kent C. Dodds
authored andcommitted
docs(nav): highlight current nav-index-listing
Color the current nav-index-listing item dark red to make it easier to know where you are. Closes #9970 Closes #9974
1 parent 5b23bc9 commit f30163e

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

docs/app/assets/css/docs.css

+4
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,10 @@ h1,h2,h3,h4,h5,h6 {
128128
margin-bottom:5px;
129129
}
130130

131+
.nav-index-group .nav-index-listing.current a {
132+
color: #B52E31;
133+
}
134+
131135
.nav-breadcrumb {
132136
margin:4px 0;
133137
padding:0;

docs/app/src/docs.js

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ angular.module('DocsController', [])
1313
$scope.navClass = function(navItem) {
1414
return {
1515
active: navItem.href && this.currentPage && this.currentPage.path,
16+
current: this.currentPage && this.currentPage.path === navItem.href,
1617
'nav-index-section': navItem.type === 'section'
1718
};
1819
};

0 commit comments

Comments
 (0)