Commit e045dd9
Announce Theme Transitions page action button updates (#2146)
<!--- Provide a general summary of your changes in the Title above -->
## Description
Added accessibility announcements to the ThemeTransitionPage using
UIHelper.AnnounceActionForAccessibility so that screen readers properly
announce the result of user-initiated actions (e.g., adding/deleting
items, refreshing content, repositioning elements, adding/clearing
rectangles).
Also changed var to explicit int type for value in
EntranceAddButton_Click to comply with project coding conventions.
## Motivation and Context
Screen readers did not announce the outcome of button actions on the
Theme Transition sample page, making it inaccessible for users relying
on assistive technology.
Bug:
[https://microsoft.visualstudio.com/OS/_workitems/edit/60914518](vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/ce099c1ed2/resources/app/out/vs/code/electron-browser/workbench/workbench.html)
## How Has This Been Tested?
Manually verified by deploying WinUI Gallery Dev app locally that each
button action on the Theme Transition page triggers a screen reader
announcement with the expected text.
Confirmed existing functionality (add, delete, reposition, entrance
transitions) is unchanged.
## Screenshots (if appropriate):
https://github.com/user-attachments/assets/4d395977-5d9d-4233-9689-269d5c65802b
## Types of changes
<!--- What types of changes does your code introduce? Put an `x` in all
the boxes that apply: -->
- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to change)
---------
Co-authored-by: Shubhika Shubhavee <sshubhavee@microsoft.com>1 parent f75841b commit e045dd9
1 file changed
Lines changed: 14 additions & 1 deletion
Lines changed: 14 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
| 45 | + | |
44 | 46 | | |
45 | 47 | | |
46 | 48 | | |
| |||
58 | 60 | | |
59 | 61 | | |
60 | 62 | | |
| 63 | + | |
61 | 64 | | |
62 | 65 | | |
63 | 66 | | |
64 | 67 | | |
65 | 68 | | |
| 69 | + | |
66 | 70 | | |
| 71 | + | |
| 72 | + | |
67 | 73 | | |
68 | 74 | | |
69 | 75 | | |
70 | 76 | | |
71 | 77 | | |
| 78 | + | |
| 79 | + | |
72 | 80 | | |
73 | 81 | | |
74 | 82 | | |
75 | 83 | | |
76 | | - | |
| 84 | + | |
77 | 85 | | |
78 | 86 | | |
79 | 87 | | |
80 | 88 | | |
81 | 89 | | |
82 | 90 | | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
83 | 94 | | |
84 | 95 | | |
85 | 96 | | |
86 | 97 | | |
87 | 98 | | |
| 99 | + | |
88 | 100 | | |
89 | 101 | | |
90 | 102 | | |
91 | 103 | | |
92 | 104 | | |
93 | 105 | | |
| 106 | + | |
94 | 107 | | |
95 | 108 | | |
0 commit comments