Skip to content

fix: hide details summary content part from accessibility tree (#12971) (CP: 25.2) - #12982

Merged
web-padawan merged 1 commit into
25.2from
cherry-pick-12971-to-25.2-1791194928575
Oct 5, 2026
Merged

web-padawan merged 1 commit into
25.2from
cherry-pick-12971-to-25.2-1791194928575

Conversation

@vaadin-bot

Copy link
Copy Markdown
Collaborator

This PR cherry-picks changes from the original PR #12971 to branch 25.2.


Original PR description

Description

Fixes #152
Follow-up to #12525

In NVDA browse mode, Enter is not sent to the page. NVDA finds the innermost accessible node at the virtual cursor and runs its default action. The <div part="content"> in vaadin-details-summary sits between the role="button" host and the slotted text. When the cursor resolves to that generic node, the action does nothing. vaadin-accordion-heading is not affected, as it uses a native <button> with no wrapper around the text.

Tested in NVDA 2026.2 + Chrome:

details-collapsed

Type of change

  • Bugfix

How to test

Requires NVDA + Chrome on Windows.

  1. Run yarn start and open dev/details.html
  2. Start NVDA and make sure it is in browse mode (should be the default)
  3. Move the virtual cursor to a details summary and press Enter several times
  4. Each press toggles the details, and NVDA announces "expanded" or "collapsed"

@sonarqubecloud

sonarqubecloud Bot commented Oct 5, 2026

Copy link
Copy Markdown

@web-padawan
web-padawan merged commit 6a4845f into 25.2 Oct 5, 2026
10 checks passed
@web-padawan
web-padawan deleted the cherry-pick-12971-to-25.2-1791194928575 branch October 5, 2026 10:12
@vaadin-bot

Copy link
Copy Markdown
Collaborator Author

This ticket/PR has been released with Vaadin 25.2.11.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants