NVDA announces "expanded" after a popover="auto" dialog closes
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 22/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- html, javascript, python
- Domain
- accessibility
Research direction
The bug is in how NVDA reports the expanded state of a button after a popover="auto" dialog closes when the trigger sits in a separate wrapper div. Start from the repro HTML linked in the issue to confirm the Case 1 and Case 2 markup. Then look at NVDA's Chromium/Edge UIA event handling for state changes, which the payload does not name explicitly. Done means Case 2 announces collapsed after Escape, matching Case 1, with the repro passing manually.
Written by the indexing model from the issue text.
Description
Brief summary
NVDA does not announce the state of collapsed after closing a <dialog> that uses popover="auto" and popovertarget on the triggering button, if the trigger is not in the same parent container as the dialog. NVDA announces expanded even though the correct state appears in the browsers accessibility tree. Tabbing away and back again or using the NVDA key + Tab, reports the correct state as collapsed.
Steps to reproduce
- Open NVDA.
- Open the attached repro in either Edge or Chrome.
- Tab to Case 1, press enter and then close the dialog with the escape key and note the announced state.
- Tab to Case 2, press enter and then close the dialog with the escape key and notd the announced state.
Case 1, the trigger and dialog share the same parent and the announced state is correct.
Case 2, the trigger is wrapped in its own div, the announced state is incorrect.
nvda-popover-expanded-state-repro.html
Actual behavior
Here is the speech output for the Case 2 button, pressing enter and then the escape key.
Open dialog 2 button collapsed
Dialog 2 content.
button expanded Open dialog 2
Open dialog 2 button expanded
Expected behavior
NVDA should announce the state as collapsed as it does for Case 1
NVDA logs, crash dumps and other attachments
No response
NVDA type
installed copy
NVDA version
Version 2026.3.1 (2026.3.1.58288)
Have you tried any other versions of NVDA? If so, please report their behaviors.
No response
Windows version
Windows 11 26H2 (10.0.26300 Build 26300)
Name and version of other software in use when reproducing the issue
- Edge version: 157.0.4341.60 (Official build) (64-bit)
- Chrome version: Version 158.0.8127.37 (Official Build) (64-bit)
- Firefox version: 160.0.1 (64-bit)
- JAWS version 2027.2610.428
Other information about your system
No response
Does the issue still occur after restarting your computer?
I have restarted my computer and the issue still occurs
If NVDA add-ons are disabled, is your problem still occurring?
I have restarted NVDA with add-ons disabled and the issue still occurs
Does the issue still occur after you run the System Accessibility Repair Tool (COM Registration Fixing Tool in older versions) in NVDA's tools menu?
I have run the System Accessibility Repair Tool and the issue still occurs
Also reported to:
Chromium issue: https://issues.chromium.org/issues/589797296
Firefox issue: https://bugzilla.mozilla.org/show_bug.cgi?id=2096798
- Dominant language
- Python
- Stars
- 2.7k
- Forks
- 842
- Avg merge
- 2d 4h
- Merged PRs (30d)
- 56
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from nvaccess/nvda
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
Maintainers usually reply within 1 day
-
needs-technical-investigation p5 triaged
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
nvaccess/nvda#21085 · 7 comments ·
Maintainers usually reply within 1 day
-
Braille Viewer draws two braille patterns wrongly (U+28CC, U+2873) because of glyph errors in FreeMono-FixedBraille.ttfMay be free again A pull request for this issue was closed without being merged. Openaudience/a11y-tester good first issue p4 triaged
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
nvaccess/nvda#21022 · 3 comments ·
Maintainers usually reply within 1 day
-
api-breaking-change audience/nvda-dev p5 release/blocking release/blocking-beta triaged
Difficulty 2/5 Under an hour Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
p5 triaged
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
pimutils/vdirsyncer#1242 ·
-
priority:P2
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
QuantConnect/lean-cli#792 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
open-webui/open-webui#35360 · 1 comment ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Suggest link: Destiny Verify (MIT zero-dependency pre-commit security, citation & link hygiene CLI)Open
Difficulty 1/5 Under an hour Newbie friendliness 68/100