-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Fix VoiceOver doesnot announces the State of the ComboBox #32286
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -34,6 +34,9 @@ public partial class TaskDetailPageModel : ObservableObject, IQueryAttributable | |
| [ObservableProperty] | ||
| private bool _isExistingProject; | ||
|
|
||
| [ObservableProperty] | ||
| private bool _isProjectPickerExpanded; | ||
|
|
||
| public TaskDetailPageModel(ProjectRepository projectRepository, TaskRepository taskRepository, ModalErrorHandler errorHandler) | ||
| { | ||
| _projectRepository = projectRepository; | ||
|
|
@@ -118,6 +121,18 @@ public bool CanDelete | |
| } | ||
| } | ||
|
|
||
| partial void OnIsProjectPickerExpandedChanged(bool value) | ||
| { | ||
| if (value) | ||
| { | ||
| SemanticScreenReader.Announce("Project ComboBox, State Expanded"); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should/could be a localized text?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @jsuarezruiz, I checked the MAUI project templates and found that SemanticProperties and SemanticScreenReader consistently use direct English strings without localisation. To stay aligned with that pattern, I have followed the same approach here. |
||
| } | ||
| else | ||
| { | ||
| SemanticScreenReader.Announce("Project ComboBox, State Collapsed"); | ||
| } | ||
| } | ||
|
|
||
| [RelayCommand] | ||
| private async Task Save() | ||
| { | ||
|
|
||
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.
Extra space between 'void' and 'OnIsCategoryPickerExpandedChanged'. Should be single space for consistency with the similar method in TaskDetailPageModel.cs.