♿️(frontend) restore presenter focus trapping after share links#2533
♿️(frontend) restore presenter focus trapping after share links#2533Ovgodd wants to merge 4 commits into
Conversation
224c446 to
24256bb
Compare
24256bb to
370910e
Compare
|
Size Change: 0 B Total Size: 4.36 MB 📦 View Changed
|
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
WalkthroughPresenter mode now contains focus within the overlay and preserves open popovers during Escape handling. Floating-bar navigation uses Estimated code review effort: 2 (Simple) | ~10 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In
`@src/frontend/apps/impress/src/features/docs/doc-presenter/hooks/usePresenterShortcuts.ts`:
- Around line 74-83: Update the Escape handling in usePresenterShortcuts so
presenter closure is blocked only when the presenter’s own actions popover is
open. Replace the document-wide .react-aria-Popover query with the floating
bar’s isActionsOpen state or an equivalent presenter-owned ref/marker, while
preserving fullscreen behavior and closing when no presenter popover is active.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: ASSERTIVE
Plan: Pro
Run ID: cc09653b-fde9-49f3-9fb4-8e1d309fbcfc
📒 Files selected for processing (4)
CHANGELOG.mdsrc/frontend/apps/impress/src/features/docs/doc-presenter/components/PresenterFloatingBar.tsxsrc/frontend/apps/impress/src/features/docs/doc-presenter/components/PresenterOverlay.tsxsrc/frontend/apps/impress/src/features/docs/doc-presenter/hooks/usePresenterShortcuts.ts
Restore FocusScope and aria-disabled for access presenter nav after share links
370910e to
4611771
Compare
Purpose
Fix accessibility regressions in presenter mode introduced with share links: focus escaping to the background document, focus loss on first/last slides, missing keyboard focus on "Copy link to slide", and Escape closing the presenter while the share dropdown is open.
fixfocusresenter.mp4
Proposal
containon the presenterFocusScopedisabledwitharia-disabledon Prev/Next toolbar buttons:focus-visibleindicator on the "Copy link to slide" menu item