Skip to content

fix - context item accessibility issue#260

Merged
jdneo merged 4 commits into
mainfrom
tori/accessibility
May 27, 2026
Merged

fix - context item accessibility issue#260
jdneo merged 4 commits into
mainfrom
tori/accessibility

Conversation

@xinyi-gong
Copy link
Copy Markdown
Member

@xinyi-gong xinyi-gong commented May 27, 2026

Copilot AI review requested due to automatic review settings May 27, 2026 02:15
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

This PR improves chat UI accessibility by ensuring context-related widgets and code-block action buttons expose better accessibility names and by making code-block action buttons appear when the code block gains keyboard focus.

Changes:

  • Show/hide code-block action buttons (copy/insert) on focus gain/loss in addition to hover.
  • Add accessibility names to code-block action buttons and the “add context” button.
  • Provide accessible names for referenced-file widgets, with a more descriptive name for the “current referenced file” variant.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/SourceViewerComposite.java Adds focus-based show/hide for code-block action buttons and accessibility names for action buttons.
com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/ReferencedFile.java Adds an accessible name provider for referenced-file widgets.
com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/CurrentReferencedFile.java Overrides accessible name to include a descriptive prefix for the current file widget.
com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/AddContextButton.java Adds an accessibility name to the add-context control(s).

@xinyi-gong xinyi-gong changed the title fix - context item and code block accessibility issues fix - context item accessibility issue May 27, 2026
@jdneo jdneo merged commit e5e3208 into main May 27, 2026
4 checks passed
@jdneo jdneo deleted the tori/accessibility branch May 27, 2026 09:39
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.

3 participants