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

オープン
#471 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@vivekrajputofficial29-afk がすでに取り組んでいます。

2026年11月21日 から。

  • #472 @vivekrajputofficial29-afk による — オープン

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
javascript, playwright, react

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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
主要言語
JavaScript
スター
53
フォーク
187
平均マージ
18分
マージ済み PR(30日)
2

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

AOSSIE-Org/OrgExplorer のほかの issue

AOSSIE-Org/OrgExplorer の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。