Skip to content

Commit

Permalink
feat(clayui.com): Fix inconsistency in active links
Browse files Browse the repository at this point in the history
  • Loading branch information
kresimir-coko committed May 5, 2020
1 parent 961cdb7 commit df77dc8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions clayui.com/src/components/Sidebar/Navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ class Navigation extends Component {
active: this.isActive(section) === true,
draft: section.draft,
'nav-heading': section.items,
'parent-page-active':
section.items &&
location.pathname.includes(`${section.link}.html`),
});

return (
Expand Down
4 changes: 4 additions & 0 deletions clayui.com/src/styles/site/_sidebar-site.scss
Original file line number Diff line number Diff line change
Expand Up @@ -94,4 +94,8 @@
transform: rotate(90deg);
}
}

.parent-page-active > .nav-link {
color: $brand-dark;
}
}

0 comments on commit df77dc8

Please sign in to comment.