Repository navigation
🎨 Palette: notification panel takes focus when opened and after Skip - #377
Open
Randomname653 wants to merge 1 commit into
Open
Randomname653 wants to merge 1 commit into
Randomname653 wants to merge 1 commit into
Conversation
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_014GBDVC1k1qRH9wN8eno2UU
4 tasks done
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.
Problem
Bell panel (
#msg-panel,frontend/index.html,notifications.js), WCAG 2.4.3 / 4.1.2, keyboard and screen-reader users.#msg-panelsits before#msg-bellin the DOM andtoggleMsgPanelnever moved focus, so after Enter on the bell, focus stays on the bell and the panel's Respond/Skip buttons are only reachable by Shift+Tab back through the page.#msg-list(loadUnreadMessages(true)), destroying the pressed button; focus falls to<body>./api, earlier run): focus after open =msg-bell; after Enter on Skip =BODY.Change
#msg-panelgetsrole="region"and the existingtop.notificationslabel (no new strings).skipMessagerefocuses the panel when the Skip button was redrawn away.Measured effect / proof
Verified with the node test below (real functions, DOM stubs); I did not re-run the browser probe after the change. Not changed: the game-question buttons (
answerGameQuestion) also redraw the list; left for a follow-up to keep this small.Tests
tests/test_a11y_nav.py::test_bell_panel_focus: 4 checks fail on main, 53/53 pass with the change. Battery: 357/358, only the known sandbox failuretest_enrichment_status_perf.py(SQLite planner; fails on untouched main, passes in CI).Risk & edge cases
Focus moves only on open; the 60 s badge poll doesn't call it. Clicking the bell with a mouse also moves focus into the panel (as a menu/dialog would). Empty list falls back to the close button; closed panel is a no-op.
Duplicate check
Searched journal, other personas' journals, PRs for "bell", "notification", "msg-panel", and
git log -300; no prior change to the panel's focus handling.🤖 Generated with Claude Code
https://claude.ai/code/session_014GBDVC1k1qRH9wN8eno2UU