A11y: Fix code-pane focus order, focus visibility, tooltips, and View code button#613
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Accessibility-focused updates across the Scenario page, Model page, and multiple samples to improve keyboard navigation, focus visibility, and discoverability of UI affordances in AI Dev Gallery.
Changes:
- Updated sample output panes to avoid taking keyboard focus when they are non-interactive (ScrollViewer
IsTabStop="False"). - Improved code-pane keyboard focus flow (Tab into code tabs; Shift+Tab back to the Code toggle) and focus visuals in the code viewer.
- Model page and card UI tweaks: padding fix to prevent clipped focus rectangles, added tooltips for sample chips, and restyled “View code” to read as a button.
Reviewed changes
Copilot reviewed 17 out of 17 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| AIDevGallery/Samples/WCRAPIs/TextToTable.xaml | Removes output scroll area from tab order. |
| AIDevGallery/Samples/WCRAPIs/TextSummarize.xaml | Removes output scroll area from tab order. |
| AIDevGallery/Samples/WCRAPIs/TextRewrite.xaml | Removes output scroll area from tab order. |
| AIDevGallery/Samples/WCRAPIs/PhiSilicaBasic.xaml | Removes output scroll area from tab order. |
| AIDevGallery/Samples/WCRAPIs/DescribeYourChange.xaml | Removes output scroll area from tab order. |
| AIDevGallery/Samples/Open Source Models/Language Models/Translate.xaml | Removes output scroll area from tab order. |
| AIDevGallery/Samples/Open Source Models/Language Models/SentimentAnalysis.xaml | Removes output scroll area from tab order. |
| AIDevGallery/Samples/Open Source Models/Language Models/Paraphrase.xaml | Removes output scroll area from tab order. |
| AIDevGallery/Samples/Open Source Models/Language Models/GrammarCheck.xaml | Removes output scroll area from tab order. |
| AIDevGallery/Samples/Open Source Models/Language Models/GenerateCode.xaml | Removes output scroll area from tab order. |
| AIDevGallery/Samples/Open Source Models/Language Models/ExplainCode.xaml | Removes output scroll area from tab order. |
| AIDevGallery/Pages/Scenarios/ScenarioPage.xaml.cs | Adds keyboard handling and focus return integration for the code pane. |
| AIDevGallery/Pages/Scenarios/ScenarioPage.xaml | Wires Code toggle PreviewKeyDown for Tab-to-code-pane behavior. |
| AIDevGallery/Pages/Models/ModelPage.xaml | Adds padding for focus visibility and tooltips for sample chips. |
| AIDevGallery/Controls/SampleContainer.xaml.cs | Adds focus-bridging helpers/events and code tab focus logic. |
| AIDevGallery/Controls/SampleContainer.xaml | Wires TabView PreviewKeyDown and enables system focus visuals for code border. |
| AIDevGallery/Controls/Card.xaml | Restyles “View code” into a more button-like pill while preserving the button behavior. |
wang563681252
approved these changes
Jun 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes for accessibility bugs against AI Dev Gallery. Each fix is in its own commit for independent review.
Fixes
Validation
Verified manually with keyboard navigation and Accessibility Insights for Windows on the reported page.