Skip to content

Commit

Permalink
fix: show chevrons for top level nav items
Browse files Browse the repository at this point in the history
  • Loading branch information
jerelmiller committed Aug 7, 2020
1 parent e626b1e commit c8a69b6
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions src/components/NavigationItems.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ const NavItem = ({ page, depthLevel, searchTerm, filteredPageNames }) => {
{headerIcon}
{display}
</span>
{depthLevel > 0 && page.children && (
{page.children && (
<FeatherIcon
size="1rem"
className={cx(
Expand Down Expand Up @@ -186,16 +186,14 @@ const NavItem = ({ page, depthLevel, searchTerm, filteredPageNames }) => {
{headerIcon}
{display}
</span>
{depthLevel > 0 && (
<FeatherIcon
size="1rem"
className={cx(
{ [styles.isExpanded]: isExpanded },
styles.nestedChevron
)}
name="chevron-right"
/>
)}
<FeatherIcon
size="1rem"
className={cx(
{ [styles.isExpanded]: isExpanded },
styles.nestedChevron
)}
name="chevron-right"
/>
</div>
)}

Expand Down

0 comments on commit c8a69b6

Please sign in to comment.