Repository navigation
fix(ui): notification rows answer Space; cap desktop theme menu to viewport - #305
Conversation
…ewport Notification rows were focusable and clickable but their key handler answered only Enter, so a keyboard user pressing Space on a focused row scrolled the page instead of opening the session, and the row carried no role announcing it as actionable. Space now activates the row (preventing the scroll) and focusable rows carry role=button. Separately, the desktop theme menu set a scroll cap only on mobile, so on short viewports its fixed-position grid clipped the bottom themes with no way to reach them by mouse or keyboard. Desktop now caps at calc(100vh - 56px) with overflow auto.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 54 minutes. View limit details
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 |
Code Review Roast 🔥Verdict: No Issues Found | Recommendation: Merge Oh wait, this PR is actually clean. I need to sit down. I had my flamethrower warmed up and everything. 📊 Overall: Like finding a unicorn in production — I didn't think clean PRs existed anymore, but here we are. Files Reviewed (3 files)
Fix these issues in Kilo Cloud Reviewed by free · Input: 43.6K · Output: 1.9K · Cached: 168.7K |
Round-2 bug-hunt findings (Area 1, UI/UX), verified in a fresh clone at 0.6.0 (7d0ce59).
Bugs (both LOW)
components/NotificationList.tsxrows are focusable (tabIndex={open ? 0 : undefined}) and clickable, butonKeyDownhandled only Enter — a scratch jsdom test dispatching Space on the focused row opened nothing, while the Enter control opened the session. Every sibling keyboard surface (TabBar, FileExplorer, GitChangesPanel) handles Space. The row also carried norole, so assistive tech did not announce it as actionable.components/ThemeSwitcher.tsxsetmaxHeight: 380/overflowY: autoonly on mobile; desktop had no cap. The fixed-position grid (~289px tall, opening ~40px from the top) clips its bottom themes on viewports shorter than ~330px (landscape phones in desktop mode, split-screen/small windows), with no scrollable ancestor — and keyboard focus moving to a clipped item does not bring it into view.Fix
preventDefaultso the page does not scroll) and focusable rows carryrole="button".calc(100vh - 56px)withoverflowY: auto(mobile unchanged at 380px).Regression test: Space-on-row opens the session in
components/NotificationList.test.mjs.Verification
components/NotificationList.test.mjs: 10 pass, 0 fail.tsc --noEmitclean, eslint clean on changed files.next buildnot run per house rules.Not covered by open PRs #295–#300 (round-1 UI PR #298 covers MCP workspace leak, settings toggle race, toast/notification keyboard, toast dismiss i18n — not these). No GitHub issue closed, so no Fixes trailer.