Accessibility fixes#621
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
📝 WalkthroughWalkthroughModule reorganization consolidates keyboard UI exports ( ChangesKeyboard UI Consolidation & Focus Management
Sequence DiagramsequenceDiagram
participant User
participant AreaManager
participant BodyChildren
participant FocusStore
User->>AreaManager: toggle(true)
AreaManager->>FocusStore: store previouslyFocused element
AreaManager->>BodyChildren: set inert=true (except overlay)
AreaManager->>AreaManager: focus overlay asynchronously
User->>AreaManager: toggle(false)
AreaManager->>BodyChildren: restore inert states
AreaManager->>FocusStore: restore focus to previouslyFocused element
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested labels
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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 `@accessibility/keyboardui.js`:
- Around line 45-54: When toggling the overlay you currently force all
non-overlay body children to inert=true and later unconditionally set
inert=false; instead record each element's prior inert value when opening (e.g.
store a Map on the AreaManager instance like this._previousInertStates keyed by
element) and on close restore each element's inert to its saved boolean, then
clear the map; update the code around the overlay focus logic (references:
this.previousFocus and this.overlay) to save states before setting inert and to
restore them instead of blindly flipping them to false.
🪄 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: defaults
Review profile: CHILL
Plan: Pro
Run ID: cf167786-86f4-4265-9b7e-26944ec16b50
📒 Files selected for processing (4)
accessibility/keyboardui.jsmain/main.jsui/addmenu.jsui/gizmos.js
Summary
Small accessibility fixes for the keyboard accessibility UI based on feedback.
accessibility.jsfile to the/accessibilityfolder and renamed it tokeyboardui.jsto be clearerAI Usage
Claude Sonnet 4.6 used for advice and code fixes.
Summary by CodeRabbit