Repository navigation
fix(app): keep the timeline and Home list out of the Tab order - #65758
Conversation
There was a problem hiding this comment.
I recommend approving this. On the base, Shift+Tab can land on the timeline or Home list itself, which draws no ring. With this PR, focus moves to the controls inside instead.
I checked with the e2e tests. Your new timeline test and the updated Home focus test pass on this branch. With only scroll-view.tsx put back to the base version, both fail on the viewport tabindex (0 instead of -1). The wider timeline, Home and scrollbar specs also pass. The only exception was a timeline-geometry visual-probe test, which failed once, passed on the base and then passed 3 times out of 3 here, so it looks flaky. tsc passes in ui and app.
ScrollView is only used by the timeline and Home, and both contain focusable controls, so keyboard users can still get into each list. A click still focuses the area, so keyboard scrolling after a click works as before.
Public API: unchanged.
I have no concerns.
There was a problem hiding this comment.
I recommend approving this. The new commits only trim comments and merge dev, so the fix is the same as before. Your new timeline test and the updated Home focus test still pass on this head.
Public API: unchanged.
My last review raised no concerns, and I have nothing new.
Issue for this PR
Follow-up to the review comment on #65690. cc @Hona
Type of change
What does this PR do?
The timeline and Home's session list became Tab stops whenever they could scroll, but since #65690 they draw no ring. Tab or Shift+Tab could land on the whole area, and focus seemed to disappear (WCAG 2.4.7).
The scroll area (
ScrollView's viewport) is now never a Tab stop. Tab moves between the controls inside it, and those show their ring. A click still focuses the area, so click and then ↑/↓/PgUp/PgDn scrolls as before, and PgUp/PgDn in the composer still pages the timeline.ScrollViewis only used by the timeline and Home, and both contain focusable controls, so I changed the shared component rather than adding a prop.No feature flag: this is an accessibility fix.
How did you verify your code works?
session-timeline-accessibility.spec.tsand an updated Home focus case inhome.spec.ts. Both fail ondev(focus lands on the viewport) and pass here, 10/10 with--repeat-each=10 --workers=5 --retries=0.home,session-timeline-accessibility,session-panel-scrollbarandpatch-sticky-header: 52 passed, 1 failed. The failure,Home keeps the session list in every interface mode, also fails locally on unchangeddev. Earlier runs ofcomposer,timeline-cacheandmobile-timeline-scrollpassed apart from 9 tests that fail the same way on unchangeddev.focus-rescueandinput-surfaces: 15/15 on a cold story server.bun typecheckinuiandapp;scroll-view.test.ts10/10;bun run lint:changed origin/dev: 0 problems.Screenshots / recordings
Shift+Tab from the first control in the timeline
Before: focus lands on the timeline itself, with nothing visible

After: focus moves to Toggle review, with its ring

Shift+Tab from Add project on a short Home window
Before: focus lands on the list itself, with nothing visible

After: focus moves to New session, with its ring

Checklist