[BUG]: Learn More analysis dialog allows focus behind the overlay and ignores Escape

Open
#471 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@vivekrajputofficial29-afk is already working on this.

Since Nov 21, 2026.

  • #472 by @vivekrajputofficial29-afk — open

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
javascript, playwright, react

Research direction

Start with src/components/LearnModeModal.jsx and inspect its existing close behaviour and the Learn More trigger. The issue proposes adding dialog semantics, focus entry and containment, Escape handling, focus restoration, and an accessible name for the icon close button, with regression tests. Check the component’s existing test setup; done means keyboard focus stays in the dialog, Escape closes it, focus returns to Learn More, and assistive technology can identify the dialog and close button.

Written by the indexing model from the issue text.

Description

bug enhancement
Bug Description

The Learn More dialog in the Standard Analysis banner looks modal, but keyboard focus remains on the page behind it. Pressing Tab after opening it moves to Connect PAT & Run underneath the overlay, and Escape does not close it.

In src/components/LearnModeModal.jsx, the dialog also has no dialog role or accessible name, and its icon-only close button is unnamed. The visible Close button does work; this report concerns modal keyboard behaviour, not a completely unclosable popup.

Expected: opening the dialog moves focus inside it, Tab/Shift+Tab stay within it, Escape closes it, and focus returns to Learn More when it closes.

Steps to Reproduce
  1. Without a PAT, explore an organisation and open Overview.
  2. Click Learn More in the Standard Analysis banner.
  3. Press Escape: the dialog remains open.
  4. Press Tab: focus moves to Connect PAT & Run behind the overlay.
  5. Inspect the accessibility tree: the overlay has no dialog role, and the top-right close icon has no accessible name.
Logs and Screenshots

The recording and screenshot use the real local app with synthetic GitHub API responses for an organisation labelled “Keyboard demo (local fixture)”. No real token was used. The modal component is unchanged from upstream main at b396d1b7f50a3341d4a5b9ff67211d95c9a5fb95.

Recording: opening Learn More, pressing Escape, then Tab:

https://github.com/user-attachments/assets/b0339c05-6560-42ad-9e8b-fb6fd88ecf9a

Screenshot after Tab: the focus outline is on Connect PAT & Run behind the dialog.

Learn More dialog open with keyboard focus on Connect PAT and Run behind the overlay

Three local Testing Library/jsdom diagnostic cases additionally reproduced missing dialog semantics, ignored Escape, focus escaping to a background control, and focus falling back to the document body after closing. These diagnose the current behaviour; no fix has been implemented yet.

Proposed contribution and coordination

I'd like to take this as my next contribution: add named dialog semantics, focus entry and containment, Escape handling, focus restoration and a name for the icon close button, with regression tests. I'd keep this scoped to LearnModeModal and its tests, preserving the current content and layout.

My PR #469 is still awaiting human review, so could a maintainer confirm whether this is a useful next task and when you'd prefer me to start under the one-issue-at-a-time guideline? Please also let me know if anyone is already working on it.

I checked existing issues and all 93 open PR file lists on 20 November; none changes LearnModeModal. Related #466 / #468 covers PAT-field labels, #363 / #364 covers page information controls, and #419 / #429 covers table headers.

AI assistance was used for the investigation, diagnostic tests and proposed approach.

Environment Details
  • Windows; local Vite development build, React 18.
  • Chromium-based browser via Playwright; no PAT.
  • Diagnostic tests: Node 25.8.0, Vitest 4.1.10, jsdom.
  • The recording uses mocked API data, not a live organisation analysis.
Impact

Medium - Feature works but has issues

Code of Conduct
  • I have joined the Discord server and will post updates there
  • I have searched existing issues to avoid duplicates
Dominant language
JavaScript
Stars
53
Forks
187
Avg merge
18m
Merged PRs (30d)
2

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from AOSSIE-Org/OrgExplorer

All issues in AOSSIE-Org/OrgExplorer

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.