You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When you press the "skip to main content" button (with spacebar), the page scrolls past the main content, often substantially past.
To Reproduce
Steps to reproduce the behavior:
Go to any page in a site running Blowfish theme
Press "tab" to select the "skip to main content" button (it must be the first thing you do upon loading the page since it relies on your tab stop being neutral)
Press space bar to press the button
The page will scroll substantially past the main content
(though it functions as expected in mobile emulation mode)
Expected behavior
Upon pressing space to press the "skip to main content" button, the page should scroll down to the first textual or image content in the given page.
Screenshots
N/A
Desktop (please complete the following information):
Windows 10
Firefox
Version 121.0.1
Hugo & Blowfish versions
Hugo Version: 0.121.2
Blowfish Version: 2.50 (latest?)
The spacebar scrolling behavior is built into the browser, it's just that in this case, the button press should prevent the browser from also doing the scroll. So the scroll-past is the result of the "skip to main content" bumping you down to where it should, then the spacebar press ALSO scrolls you in and of itself, and the two combined shoot you way further down.
The text was updated successfully, but these errors were encountered:
nunocoracao
changed the title
The screen reader "skip to main content" flow skips too far down the page
馃悰 The screen reader "skip to main content" flow skips too far down the page
Mar 9, 2024
Describe the bug
When you press the "skip to main content" button (with spacebar), the page scrolls past the main content, often substantially past.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Upon pressing space to press the "skip to main content" button, the page should scroll down to the first textual or image content in the given page.
Screenshots
N/A
Desktop (please complete the following information):
Hugo & Blowfish versions
Hugo Version: 0.121.2
Blowfish Version: 2.50 (latest?)
Additional context
I think this specific change might be what broke this: https://github.com/nunocoracao/blowfish/pull/1120/files
The spacebar scrolling behavior is built into the browser, it's just that in this case, the button press should prevent the browser from also doing the scroll. So the scroll-past is the result of the "skip to main content" bumping you down to where it should, then the spacebar press ALSO scrolls you in and of itself, and the two combined shoot you way further down.
The text was updated successfully, but these errors were encountered: