Can't scroll using keyboard on Gatsby Docs pages
See original GitHub issueDescription
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
- Go to either a Docs pages: https://www.gatsbyjs.com/docs/
- 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:
- Created 3 years ago
- Reactions:5
- Comments:14 (11 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thank you @LekoArts for following up and fixing the issue, @fk It works great~
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 addmin-height: 100%;
to the left-side nav:It looks good to me.