Add navigation item highlight to active item

This change adds high lighting to navigation items in tech docs. It highlights
the whole nav tree with the same color and an underline.

Signed-off-by: Crevil <bjoern.soerensen@gmail.com>
This commit is contained in:
Crevil
2022-07-17 16:18:27 +02:00
parent 8d83f5cb4f
commit b86ed4d990
2 changed files with 10 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-techdocs': patch
---
Add highlight to active navigation item and navigation parents.
@@ -47,6 +47,11 @@ export default ({ theme, sidebar }: RuleOptions) => `
height: 20px !important;
}
.md-nav__item--active > .md-nav__link, a.md-nav__link--active {
text-decoration: underline;
color: var(--md-typeset-a-color);
}
.md-main__inner {
margin-top: 0;
}