Skip to content

Announce marker contents via aria.alert in goto-error peek widget#316835

Merged
meganrogge merged 3 commits into
mainfrom
copilot/fix-accessibility-error-message-issues
May 18, 2026
Merged

Announce marker contents via aria.alert in goto-error peek widget#316835
meganrogge merged 3 commits into
mainfrom
copilot/fix-accessibility-error-message-issues

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 17, 2026

Screen readers (Narrator in particular) did not announce the problem text when the inline marker peek widget is opened with F8. The widget's aria-live region was present but unreliable, and its aria-label omitted the actual message — only severity, position, and the underlying line content were exposed.

Changes

  • gotoErrorWidget.tsMessageWidget.update(): explicitly call aria.alert(...) whenever the widget is shown at a marker or the marker changes, forcing a Narrator announcement when the user invokes "view problem".
  • MessageWidget.getAriaLabel: include marker.message in the label so the actual problem text is conveyed alongside severity and location.

Scope note

The two other bullets in the original report (tab-order of next/previous problem buttons; control names not announced) were confirmed by the area owner as working-as-designed (arrow-key navigation; reproducible only with one screen reader), so they are not addressed here.

Copilot AI requested review from Copilot and removed request for Copilot May 17, 2026 01:35
Copilot AI linked an issue May 17, 2026 that may be closed by this pull request
Co-authored-by: dmitrivMS <9581278+dmitrivMS@users.noreply.github.com>
Copilot AI requested review from Copilot and removed request for Copilot May 17, 2026 01:42
Copilot AI changed the title [WIP] Fix multiple accessibility issues in error message Announce marker contents via aria.alert in goto-error peek widget May 17, 2026
Copilot AI requested a review from dmitrivMS May 17, 2026 01:43
@dmitrivMS
Copy link
Copy Markdown
Contributor

@copilot I think we don't like aria.alert, isn't that what's in the instructions?

Co-authored-by: dmitrivMS <9581278+dmitrivMS@users.noreply.github.com>
Copilot AI requested review from Copilot and removed request for Copilot May 17, 2026 01:58
Copy link
Copy Markdown
Contributor Author

Copilot AI commented May 17, 2026

@copilot I think we don't like aria.alert, isn't that what's in the instructions?

You're right — the accessibility skill says to prefer status() over alert() unless the announcement is time-sensitive. Switched to aria.status(...) in the latest commit.

@meganrogge meganrogge marked this pull request as ready for review May 18, 2026 21:15
Copilot AI review requested due to automatic review settings May 18, 2026 21:15
@meganrogge meganrogge enabled auto-merge (squash) May 18, 2026 21:16
@meganrogge meganrogge modified the milestones: 1.121.0, 1.122.0 May 18, 2026
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

Improves screen reader support for the goto-error peek widget by announcing the actual problem text when the widget opens or the marker changes.

Changes:

  • Call aria.status(...) in MessageWidget.update() to announce the marker's aria label.
  • Include marker.message in the aria label returned by getAriaLabel.
Show a summary per file
File Description
src/vs/editor/contrib/gotoError/browser/gotoErrorWidget.ts Import aria module, announce label on update, and include the marker message in the aria label string.

Copilot's findings

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

@meganrogge meganrogge merged commit 4f31100 into main May 18, 2026
29 checks passed
@meganrogge meganrogge deleted the copilot/fix-accessibility-error-message-issues branch May 18, 2026 21:42
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 issues - Error message] Multiple issues

4 participants