NVDA announces "expanded" after a popover="auto" dialog closes

Open
#21,190 1 comment 0 reactions 0 assignees View on GitHub

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

blocked/needs-external-fix bug p4 triaged
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
  1. Open NVDA.
  2. Open the attached repro in either Edge or Chrome.
  3. Tab to Case 1, press enter and then close the dialog with the escape key and note the announced state.
  4. 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

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 nvaccess/nvda

All issues in nvaccess/nvda

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.