Skip to content

Commit

Permalink
fix(docs): fix data visualization page link and navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
anuradha9712 authored and satyamyadav committed Nov 7, 2023
1 parent f949c53 commit d9ddda6
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion docs/src/components/Header/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@ const Header = ({ relativePagePath }) => {
const pagePath = relativePagePath.split('/');
const pageSeparator = pagePath[1].split('-');
const labelSeparator = label.split(' ');

if (pagePath[1] === label.toLowerCase() || pagePath[2] === label.toLowerCase()) {
return true;
} else if (pageSeparator[0] === labelSeparator[0].toLowerCase() && pageSeparator[1] === labelSeparator[1].toLowerCase()) {
} else if (pageSeparator[0] === labelSeparator[0]?.toLowerCase() && pageSeparator[1] === labelSeparator[1]?.toLowerCase()) {
return true;
}

Expand Down
2 changes: 1 addition & 1 deletion docs/src/data/header-items.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
mobileTab: false

- label: Data Visualizations
link: /data-visualizations/overview/all-visualizations/
link: /data-visualizations/overview/all/
mobileTab: false

- label: Storybook
Expand Down
2 changes: 1 addition & 1 deletion docs/src/data/nav/visualizations.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
base: data-visualizations
menus:
- label: Overview
link: /data-visualizations/overview/all-visualizations/
link: /data-visualizations/overview/all/
- label: Colors
link: /data-visualizations/color/usage/
- label: Bar charts
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Data Visualizations
description: Data visualiations consists of charts and guidelines to create dashboards.
tabs: ["All visualizations", "Status"]
description: Data visualizations consists of charts and guidelines to create dashboards.
tabs: ["All", "Status"]
parentTab: data visualizations
---

Expand Down

0 comments on commit d9ddda6

Please sign in to comment.