Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Navigation menu issues when nesting pages #225

Open
NathanD-GDS opened this issue May 30, 2022 · 1 comment
Open

Navigation menu issues when nesting pages #225

NathanD-GDS opened this issue May 30, 2022 · 1 comment

Comments

@NathanD-GDS
Copy link

NathanD-GDS commented May 30, 2022

What should change

There are a couple of issues that are related:

  1. Nested pages display every heading on every nested page in the navigation bar
  2. If a page has nested pages beneath/within it, the headings for the top-level page do not appear in the navigation bar

1. Nested pages display every heading on every nested page in the navigation bar

At the moment, if you nest pages with multiple headings in the tech docs template, every heading for every page in the nest is visible from the navigation bar.

In this example, the API reference page has 10 pages nested beneath it. You can see two of these nested pages in the screenshot - Create a payment API reference and Get information about a single payment API reference:

image

This is a problem because, when you load one of the nested pages, the navigation bar jumps right to the bottom. If you're viewing one of the

It would be useful if it were possible to have a global (or per-page) setting to only display the headings for the current page. So the example above would instead look like this:

image

2. If a page has nested pages beneath/within it, the headings for the top-level page do not appear in the navigation bar

In this example, the top-level page API reference has headings that should be visible in the navigation bar, such as Endpoint. Instead, the navigation bars is only displaying the nested pages and the headings from the nested pages:

image

User need

As it stands, I haven't done any testing with users beyond the GOV.UK Pay team. Within the Pay team, however, everyone that went to use the API reference commented on the navigation bar and its impact on their use.

EDIT: As of May 2023, a round of user research identified the navigation as pain point.

Issue 2 prevented them from easily jumping to the headings they needed on the top-level page.

Issue 1 caused general navigation issues, where the user would select, for example, nested page 1 but the navigation menu would jump to the bottom. The user needed to then scroll past 9 nested pages (and their headings) to re-orient themselves.

@SoumayaMauthoorMOJ
Copy link

Yes please! This would make our documentation more readable e.g. https://user-guidance.services.alpha.mojanalytics.xyz/data-engineering-tools/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants