Repository navigation
fix(generator): make an overflowing viewer caption a keyboard stop - #1665
Merged
gregpriday merged 3 commits intoNov 28, 2026
Merged
gregpriday merged 3 commits into
gregpriday merged 3 commits into
Conversation
- The full-image viewer's caption gets tabindex=0 only while it overflows its own scrolling area, so WebKit keyboard users can reach and scroll it - Adds a visible focus offset and a browser test
…away - Moves focus to Close before stepping to a photo with no caption
gregpriday
force-pushed
the
bugfix/issue-1430-webkit-keyboard-users-cannot-scroll-an
branch
from
November 28, 2026 10:05
5ebf43f to
6b68a47
Compare
gregpriday
deleted the
bugfix/issue-1430-webkit-keyboard-users-cannot-scroll-an
branch
November 28, 2026 10:08
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The full-image viewer's caption scrolls on its own (
max-height:25vh,overflow-y:auto), and WebKit leaves such an area out of the Tab order, so keyboard users could not read past the first lines.Resolves #1430
Changes
tabindex="0"only while it overflows its box, measured on photo change and on resize (ResizeObserver). Captions that fit get no extra stop.Testing
tests/unit/gallery-viewer-browser.test.ts: an overflowing caption is the next Tab stop after Close and End scrolls it; a tall window removes the stop. The file passes (3 tests).