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

Improve no-js version of the main navigation #1535

Open
davidsauntson opened this issue Sep 30, 2021 · 0 comments
Open

Improve no-js version of the main navigation #1535

davidsauntson opened this issue Sep 30, 2021 · 0 comments
Labels
proposed small enhancement An enhancement where the component or pattern architecture otherwise remains stable

Comments

@davidsauntson
Copy link
Contributor

Navigation

There is a version of the main navigation that is rendered in the absence of javascript. This ensures all visitors to the site can perform basic navigation if javascript does not download to their device or if it is disabled. It currently wraps each navigation element onto a new line:

However, this style causes significant layout shift for mobile devices and desktop sites where the individual nav item titles are long, like the new intranet.

I would like to propose an alternative, where in no-js scenarios, the height of the navigation is fixed and we use CSS to allow a user to scroll through the overflowing nav elements. This poses the following questions:

  • how can we surface the scrolling behaviour to the user?
  • how will this affect keyboard navigation
@anneliwesterberg anneliwesterberg added large enhancement An enhancement of an existing component or pattern where the contribution significantly chan small enhancement An enhancement where the component or pattern architecture otherwise remains stable and removed large enhancement An enhancement of an existing component or pattern where the contribution significantly chan labels Oct 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
proposed small enhancement An enhancement where the component or pattern architecture otherwise remains stable
Development

No branches or pull requests

2 participants