File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
content/design/typography Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ keywords:
66 - font sizes
77 - fonts
88icon : TypeMajor
9+ hideChildren : true
910---
1011
1112# {frontmatter.title}
Original file line number Diff line number Diff line change @@ -14,8 +14,6 @@ import {useRouter} from 'next/router';
1414import StatusBadge from '../StatusBadge' ;
1515
1616const NAV_ID = 'nav' ;
17- // Nav levels greater than this should be part of <Subnav />
18- const MAX_NAV_LEVEL = 1 ;
1917interface Props {
2018 darkMode : DarkMode ;
2119 children : React . ReactNode ;
@@ -216,8 +214,7 @@ function NavItem({
216214
217215 if ( ! child . slug ) return null ;
218216
219- const isExpandable =
220- child . children && ! child . hideChildren && level < MAX_NAV_LEVEL ;
217+ const isExpandable = child . children && ! child . hideChildren ;
221218 const id = ( child . slug || key ) . replace ( / \/ / g, '' ) ;
222219 const navAriaId = `nav-${ id } ` ;
223220 const segments = asPath . slice ( 1 ) . split ( '/' ) ;
You can’t perform that action at this time.
0 commit comments