question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't scroll using keyboard on Gatsby Docs pages

See original GitHub issue

Description

Can’t scroll Gatsby docs using keyboard (arrow, home/end page up/down) keys
while only scrolling with mouse wheel works.

This happens in both Chrome & FireFox (latest versions) Refer to Environment for version.

Steps to reproduce

  1. Go to either a Docs pages: https://www.gatsbyjs.com/docs/
  2. Scroll the content using keyboard keys such as arrow, home/end or page up/down keys.

Expected result

Should be able to scroll up & down

Actual result

The docs page doesn’t scroll with keyboard keys

Environment

Run gatsby info --clipboard in your project directory and paste the output here.

gatsby CLI is Irrelevant so I will post npx envinfo content instead:

$  npx envinfo 

  System:
    OS: Linux 5.4 Ubuntu 20.04.1 LTS (Focal Fossa)
    CPU: (8) x64 Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz
    Memory: 1.07 GB / 15.30 GB
    Container: Yes
    Shell: 5.8 - /usr/bin/zsh
  Browsers:
    Chrome: 85.0.4183.83
    Firefox: 80.0

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:5
  • Comments:14 (11 by maintainers)

github_iconTop GitHub Comments

3reactions
dance2diecommented, Oct 30, 2020

Thank you @LekoArts for following up and fixing the issue, @fk It works great~

3reactions
machineghostcommented, Oct 27, 2020

First off, it was me, not @dance2die, who suggested max-height.

Second, on the plugin page, if you add the max-height as I described, and then simply add min-height: 100%; to the left-side nav:

<nav aria-label="Plugin navigation" class="css-kjzo05">

It looks good to me.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Scrolling using arrow keys not working in Gatsby
For some reason, having the page scroll inside the main element removes my ability to scroll using the arrow keys, and the issue...
Read more >
Scrolling with Page Up/Down Keys in React-Window
You should be able to scroll with any keys. And then click on any item in the list and try to scroll with...
Read more >
Making Your Site Accessible | Gatsby
The Gatsby team is passionate about helping you create websites that work for everyone, with helpful defaults that bake in web accessibility…
Read more >
Google Docs Shortcuts | Keyboard Shortcuts & Navigation Tools
Here we also discuss keyboard shortcuts for google docs along with other ... If you can't find what you're seeking in this guide,...
Read more >
Integrating keyboard navigation | Autocomplete - Algolia
For example, if you're using Autocomplete in a Gatsby website, you can leverage their navigate helper to navigate to internal pages without ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found