Skip to content

Fix regression in search results a11y hovers#320268

Open
dmitrivMS wants to merge 1 commit into
mainfrom
dev/dmitriv/search-results-a11y-regression
Open

Fix regression in search results a11y hovers#320268
dmitrivMS wants to merge 1 commit into
mainfrom
dev/dmitriv/search-results-a11y-regression

Conversation

@dmitrivMS
Copy link
Copy Markdown
Contributor

Fixes #320098

Co-authored-by: Copilot <copilot@github.com>
Copilot AI review requested due to automatic review settings June 6, 2026 23:32
@dmitrivMS dmitrivMS self-assigned this Jun 6, 2026
@dmitrivMS dmitrivMS enabled auto-merge (squash) June 6, 2026 23:32
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes an accessibility regression in the Search results tree by changing how hover tooltips are managed for individual match rows, avoiding per-render hover re-registration that can interfere with assistive tech object navigation.

Changes:

  • Create one managed hover per match-row template (for the match text and line number) and update its content on re-render.
  • Remove element-scoped hover disposables and the corresponding disposeElement implementation for match rows.
Show a summary per file
File Description
src/vs/workbench/contrib/search/browser/searchResultsView.ts Switches match-row hover lifecycle from per-render setup to per-template managed hovers updated on render, reducing hover churn and improving accessibility behavior.

Copilot's findings

  • Files reviewed: 1/1 changed files
  • Comments generated: 0

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[accessibility] screen reader cannot announce results while navigating between results in search box

3 participants