-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Fixed AutomationProperties.Name for DatePicker Button #10949
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed AutomationProperties.Name for DatePicker Button #10949
Conversation
There was a problem hiding this 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 fixes an accessibility issue by adding the missing AutomationProperties.Name attribute ("Show Calendar") to the DatePicker button.
- Updates the DatePicker button in all relevant theme files (Fluent, Fluent.Light, Fluent.HC, Fluent.Dark)
- Applies the same accessibility fix in the DatePicker.xaml style to improve compatibility with accessibility tools
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 5 comments.
Show a summary per file
File | Description |
---|---|
Fluent.xaml | Added AutomationProperties.Name attribute to the DatePicker button |
Fluent.Light.xaml | Updated DatePicker button for consistent accessibility naming |
Fluent.HC.xaml | Fixed missing AutomationProperties.Name for accessibility compliance |
Fluent.Dark.xaml | Unified accessibility property update for DatePicker button |
DatePicker.xaml | Applied AutomationProperties.Name update in button style |
src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Themes/Fluent.xaml
Outdated
Show resolved
Hide resolved
src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Themes/Fluent.Light.xaml
Outdated
Show resolved
Hide resolved
src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Themes/Fluent.HC.xaml
Outdated
Show resolved
Hide resolved
src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Themes/Fluent.Dark.xaml
Outdated
Show resolved
Hide resolved
src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Styles/DatePicker.xaml
Outdated
Show resolved
Hide resolved
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #10949 +/- ##
===================================================
+ Coverage 2.98754% 13.45583% +10.46829%
===================================================
Files 3319 3319
Lines 664894 664894
Branches 74674 74674
===================================================
+ Hits 19864 89467 +69603
+ Misses 644849 572878 -71971
- Partials 181 2549 +2368
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Description
The "Show Calendar" button for DatePicker control did not have any name set to it, which causes issues for users using Accessibility Features in Windows.
Customer Impact
Customers using Accessibility Features in Windows, like Narrator, etc. will be able to use the control with ease.
Regression
No
Testing
Local app + Narrator testing
Risk
Minimal
Microsoft Reviewers: Open in CodeFlow