Repository navigation
[Android] Fix TalkBack forward-swipe navigation in Task and Project Details - #38416
Conversation
…utton in task dialog using forward swipe navigation.: A11y_.NET MAUI SDKs_Task_ScreenReader
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 38416Or
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 38416" |
|
Azure Pipelines: Successfully started running 1 pipeline(s). There may be pipelines that require an authorized user to comment /azp run to run. |
This comment has been minimized.
This comment has been minimized.
There are no concerns raised in the AI summary, and the PR changes were selected as the best solution. |
This comment has been minimized.
This comment has been minimized.
|
Azure Pipelines: Successfully started running 1 pipeline(s). There may be pipelines that require an authorized user to comment /azp run to run. |
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
🔵 Needs a closer look
One or more issues must be addressed before approval.
Pull request overview
Moves accessibility hints from non-interactive SfTextInputLayout wrappers to native Picker controls in the mobile template, improving TalkBack navigation.
Changes:
- Updated project picker semantics.
- Updated category picker semantics.
- Preserved existing bindings and picker behavior.
File summaries
| File | Description |
|---|---|
| src/Templates/src/templates/maui-mobile/Pages/TaskDetailPage.xaml | Updated as part of this pull request. |
| src/Templates/src/templates/maui-mobile/Pages/ProjectDetailPage.xaml | Updated as part of this pull request. |
Review details
Suppressed comments (2)
src/Templates/src/templates/maui-mobile/Pages/ProjectDetailPage.xaml:45
- This shared template is also used on iOS, where
SemanticProperties.Descriptionbecomes the control'sAccessibilityLabelwhileSemanticProperties.Hintbecomes only itsAccessibilityHint. A new project starts with no selected category and this Picker has noTitle, so VoiceOver can encounter an unlabeled control after the wrapper description is removed. Keep an accessible label on the Picker (for example,Category) and use the hint for the activation guidance.
SemanticProperties.Hint="ComboBox to select a category. Activate to browse and select a category"/>
src/Templates/src/templates/maui-mobile/Pages/TaskDetailPage.xaml:47
- This shared template is also used on iOS, where
SemanticProperties.Descriptionbecomes the control'sAccessibilityLabelwhileSemanticProperties.Hintbecomes only itsAccessibilityHint. The Picker has noTitle, and a newly created task can have no selected project, so after this change VoiceOver can encounter an unlabeled Picker. Keep an accessible label on the Picker (for example,Project) and use the hint for the activation guidance.
SemanticProperties.Hint="ComboBox to select a project. Activate to browse and select a project"/>
- Files reviewed: 2/2 changed files
- Comments generated: 0
- Review effort level: Lite
No major concerns were raised in the AI review. It suggested adding SemanticProperties.Description to the native Picker along with the existing SemanticProperties.Hint. SemanticProperties.Description on the Picker was not read, so SemanticProperties.Hint was used instead and was verified to work properly. Therefore, no additional changes were made based on this suggestion. |
This comment has been minimized.
This comment has been minimized.
MauiBot
left a comment
There was a problem hiding this comment.
AI Review Summary
@Vignesh-SF3580 — new AI review results are available based on commit
3dfab6e.
🗂️ Review Sessions — click to expand
🚦 Gate — Test Before & After Fix
Gate Result: ⚠️ SKIPPED
No tests were detected in this PR.
Recommendation: Add tests to verify the fix using the write-tests-agent.
📋 Pre-Flight — Context & Validation
Pre-Flight — PR #38416
Issue: #38328 — TalkBack users cannot reach the Project picker and Save button with forward-swipe navigation
PR: #38416 — [Android] Fix TalkBack forward-swipe navigation in Task and Project Details
Platform: Android
State: Open, not draft
Base / head: main / Vignesh-SF3580:fix-38328 (3dfab6ed040ac6bd93a464678d08da3a949b4a96)
Materialized review commit: ee6a9d826fd059c3e39ff30cfd7c7c398590c567
Problem
In apps generated from the mobile template with sample content, TalkBack forward-swipe navigation stops after the Completed checkbox on Task Details and after the Description entry on Project Details. The Project/Category pickers and controls that follow them are therefore unreachable. The issue is reproducible on Android with .NET MAUI 10.0.0 and 10.0.101.
Submitted Fix
The submitted change removes SemanticProperties.Description from the two non-interactive Syncfusion SfTextInputLayout wrappers and places the guidance on each native MAUI Picker as SemanticProperties.Hint. Picker bindings, selection state, visibility, and IsOpen behavior remain unchanged. The remaining changes are indentation only.
Changed implementation files:
src/Templates/src/templates/maui-mobile/Pages/ProjectDetailPage.xamlsrc/Templates/src/templates/maui-mobile/Pages/TaskDetailPage.xaml
Candidate Constraints
- Candidate edits are restricted by
.github/.baseline-state.jsonto files listed inRevertedFiles; the expected allow-list is the two changed XAML files. - The repository already contains unrelated tracked and untracked workspace changes. Do not clean, reset, restore, stash, or modify them. If
EstablishBrokenBaseline.ps1rejects that state, recordBlocked, run its required-Restorecommand, and leave the workspace untouched. - Follow
.github/instructions/templates.instructions.md. - Do not repeat the submitted semantic-ownership transfer.
- A prior public AI-review run proposed (1) excluding each wrapper from the accessibility tree and (2) replacing each wrapper with a standard MAUI layout. Both were blocked before implementation. Treat both as prior approaches and choose a different mechanism.
- Candidate 2 must also avoid candidate 1's recorded mechanism.
- Do not launch a separate expert agent; perform the
try-fixskill's inline self-review only.
Validation
Gate: SKIPPED because this PR adds no tests; do not rerun the gate.
Regression cross-reference: CLEAN; there are no mandatory regression tests.
The only narrow existing structural validation is:
pwsh .github/skills/run-integration-tests/scripts/Run-IntegrationTests.ps1 -TestFilter 'FullyQualifiedName~Microsoft.Maui.IntegrationTests.SimpleTemplateTest.Build&DisplayName~--sample-content' -SkipBuild -SkipInstallRun that command at most once, plus at most one focused correction/retest. It can validate template generation/XAML compilation but cannot prove Android TalkBack traversal. A successful structural test must not be described as behavioral accessibility validation; absent manual Android TalkBack validation, record that limitation explicitly.
Direct Diff Assessment
The PR changes exactly seven additions and seven deletions across the two XAML files. Its root-cause hypothesis is that placing a semantic description on a non-interactive wrapper changes the Android accessibility-node topology and interrupts traversal. Any alternative must use a materially different cause-to-effect mechanism rather than relocating the same semantic text in a cosmetically different way.
🔬 Code Review — Deep Analysis
Expert Evaluation — Submitted PR Fix
Verdict
No actionable code finding. The expert reviewer produced inline-findings.json as an empty JSON array.
Assessment
The submitted change is localized to the sample-content mobile template's Task and Project detail pages. It removes SemanticProperties.Description from each non-interactive Syncfusion SfTextInputLayout surrounding a MAUI Picker and assigns the guidance to the corresponding interactive Picker as SemanticProperties.Hint. The picker bindings, visibility, selection, and IsOpen behavior are unchanged.
This is a sound ownership change for the reported Android accessibility failure: the semantic guidance now belongs to the native control TalkBack must focus and activate, while the Syncfusion wrapper remains responsible for visual presentation. The two pages use the same mechanism consistently, and the diff introduces no shared state, lifecycle behavior, event subscriptions, or platform-handler changes.
Risk and Evidence
- Regression risk: Low and confined to generated sample-content pages. The regression cross-reference was clean.
- Structural safety: The XAML edits preserve the existing object hierarchy and binding expressions.
- Behavioral evidence gap: Gate was skipped because the PR adds no tests. Template compilation could establish structural validity, but only manual Android TalkBack validation can prove forward-swipe order and announcement behavior.
- Reviewer refinement: None is warranted because the expert pass found no actionable issue to apply to the submitted fix.
🛠️ Try-Fix — Analysis & Comparison
Try-Fix Candidates — PR #38416
Current Aggregate
| # | Model | Approach | Result | Production Diff | Validation |
|---|---|---|---|---|---|
| 1 | gpt-5.3-codex |
Define traversal order externally at the page/container level while retaining the existing wrapper semantics and structure | Blocked | None | Not run; baseline setup rejected the pre-existing dirty tracked worktree |
| 2 | gpt-5.6-sol |
Explicitly opt each native Picker into the accessibility tree with AutomationProperties.IsInAccessibleTree="True" |
Blocked | None | Not run; baseline setup rejected the pre-existing dirty tracked worktree |
Candidate 1
Approach: Define explicit semantic traversal order at the page/container level so TalkBack proceeds through each picker and subsequent controls without transferring semantic text from the Syncfusion wrappers to picker hints.
Prior approaches avoided: The submitted PR's wrapper-description-to-picker-hint transfer, excluding each wrapper from the accessibility tree, and replacing each wrapper with a standard MAUI layout.
Mechanism-level difference: The wrapper semantics and composition would remain intact. Focus order would instead be controlled externally, removing reliance on the wrapper/native-child accessibility order at the point where traversal currently stops.
Result:
Files changed: No production files.
Diff: No candidate production diff was produced.
Test command:
pwsh .github/skills/run-integration-tests/scripts/Run-IntegrationTests.ps1 -TestFilter 'FullyQualifiedName~Microsoft.Maui.IntegrationTests.SimpleTemplateTest.Build&DisplayName~--sample-content' -SkipBuild -SkipInstallTest result: Not run. EstablishBrokenBaseline.ps1 rejected the pre-existing dirty tracked worktree and did not create .github/.baseline-state.json; without a RevertedFiles allow-list, the skill correctly prohibited implementation and testing.
Failure analysis: This is an environment/safety-boundary block, not evidence for or against the proposed mechanism. The required restore command ran and reported No baseline state found (Restored False), which is expected because baseline creation failed before any attempt edit.
Behavioral limitation: The narrow structural command could validate template generation/XAML compilation only; it could not prove Android TalkBack traversal even if it ran successfully.
Self-review: 0 findings ([]), because no candidate diff existed.
Individual report: CustomAgentLogsTmp/PRState/38416/PRAgent/try-fix-1/content.md
Attempt artifacts: CustomAgentLogsTmp/PRState/38416/PRAgent/try-fix/attempt-1
Candidate 2
Approach: Explicitly set AutomationProperties.IsInAccessibleTree="True" on each native Picker, retaining both the Syncfusion wrapper structure and its semantic description.
Prior approaches avoided: The submitted PR's semantic-text transfer, wrapper exclusion, wrapper replacement, and Candidate 1's external traversal-order mechanism.
Mechanism-level difference: Rather than changing semantic ownership, removing/replacing the parent node, or prescribing the container's order, this mechanism explicitly opts the interactive native child into accessibility exposure. The intended effect is for TalkBack to discover the picker as its own actionable node even while the wrapper remains present.
Result:
Files changed: No production files.
Diff: No candidate production diff was produced.
Test command:
pwsh .github/skills/run-integration-tests/scripts/Run-IntegrationTests.ps1 -TestFilter 'FullyQualifiedName~Microsoft.Maui.IntegrationTests.SimpleTemplateTest.Build&DisplayName~--sample-content' -SkipBuild -SkipInstallTest result: Not run. EstablishBrokenBaseline.ps1 rejected the same pre-existing dirty tracked worktree and did not create .github/.baseline-state.json; the skill therefore prohibited implementation and testing.
Failure analysis: This is an environment/safety-boundary block, not evidence for or against explicit picker accessibility-tree inclusion. The required restore command ran with the expected no-state result because no baseline or attempt edit had been created.
Behavioral limitation: The narrow structural command could validate template generation/XAML compilation only; it could not prove Android TalkBack traversal even if it ran successfully.
Self-review: 0 findings ([]), because no candidate diff existed.
Individual report: CustomAgentLogsTmp/PRState/38416/PRAgent/try-fix-2/content.md
Attempt artifacts: CustomAgentLogsTmp/PRState/38416/PRAgent/try-fix/attempt-2
Comparison
| Candidate | Root mechanism | Relative tradeoff | Validation status |
|---|---|---|---|
| 1 | Override traversal order outside the wrapper/picker pair | Could preserve visuals and semantics, but adds ordering declarations that must remain synchronized with page content | Designed only; not implemented or tested |
| 2 | Force the native picker child into the accessibility tree | More localized than ordering the whole page, but depends on Android exposing the child despite the semantic parent | Designed only; not implemented or tested |
Both mechanisms are distinct from the submitted fix and from each other, but neither produced an empirically reviewable patch. The baseline safety guard blocked both before any production edit.
Exhausted: Yes — the hard two-candidate limit was reached.
Selected alternative: None. Both candidates are hypotheses only; STEP 5b should compare them as blocked proposals, not as validated fixes.
🏁 Report — Final Recommendation
⚠️ Final Recommendation: REQUEST CHANGES
Winning candidate: pr
The raw submitted PR is the single winner. It is the only distinct, implemented fix; it directly removes accessibility semantics from the non-interactive SfTextInputLayout nodes and places the guidance on the interactive Picker nodes that TalkBack must focus. The expert reviewer found no actionable issue, the regression cross-reference was clean, and the change preserves the existing hierarchy and bindings.
This cannot be an APPROVE recommendation because the trusted Gate was skipped after detecting no tests. No source correction is recommended by the expert review, but the Gate therefore does not permit approval and the Android TalkBack behavior remains dependent on manual evidence.
Candidate comparison
| Rank | Candidate | Implementation | Review result | Validation / regression evidence | Decision |
|---|---|---|---|---|---|
| 1 | pr |
Two-file XAML fix moving picker guidance from non-interactive wrappers to native pickers | No actionable expert finding | Gate skipped; regression cross-reference clean; no automated behavioral coverage | Winner. Most direct mechanism and only distinct reviewable patch |
| 2 | pr-plus-reviewer |
Identical to pr; reviewer.patch is empty |
Reviewer supplied no change to apply | No candidate validation run because there was no candidate delta | Not selected because it provides no improvement over the raw PR |
| 3 | try-fix-2 |
Proposed explicit AutomationProperties.IsInAccessibleTree="True" on each picker |
No production diff; hypothesis only | Blocked before validation by baseline safety guard | Lower evidence; retaining wrapper semantics could still leave parent/child exposure behavior unresolved |
| 4 | try-fix-1 |
Proposed page/container-level explicit traversal ordering | No production diff; hypothesis only | Blocked before validation by baseline safety guard | Lowest rank; no concrete API usage or patch, and page-wide ordering would add synchronization burden |
No candidate failed a regression test. The two STEP 5a candidates were blocked before implementation or testing, while neither pr nor the identical pr-plus-reviewer candidate received a passing trusted Gate result.
Comparative rationale
- Correctness:
prchanges semantic ownership at the exact wrapper/picker boundary implicated by the Android traversal failure. The alternatives attempt to work around node discovery without removing the conflicting semantic parent. - Scope:
prchanges only the two affected pickers and leaves visual layout, selection, visibility, commands, and bindings intact. - Maintainability:
pruses standard MAUI semantic properties locally. Candidate 1 would require maintaining explicit order as page content changes; Candidate 2 depends on unverified Android parent/child accessibility-tree behavior. - Evidence: The raw PR has an inspectable implementation and no expert finding. Both try-fix candidates have neither code nor validation, so they cannot displace it.
Required disposition
Keep the submitted implementation. Before human approval, rely on trusted/manual Android verification that forward swipes reach the Project picker and Save button on Task Details and the Category picker and following controls on Project Details, and that each picker announces the intended hint. The skipped Gate must be treated as an evidence gap rather than a pass.
🧭 Next Steps — review latest findings
No alternative fix was selected for this run. Review the session findings and CI results before merging.
There are no concerns raised in the AI summary, and the PR changes were selected as the best solution. The only concern was the lack of automated test validation. Since adding an automated test is not feasible for this scenario due to the TalkBack accessibility behavior, this has been left as is. The reason for not adding tests is already mentioned in the PR template. |
Note
Are you waiting for the changes in this PR to be merged?
It would be very helpful if you could test the resulting artifacts from this PR and let us know in a comment if this change resolves your issue. Thank you!
Issue Details
TalkBack forward-swipe navigation could not reach all content on the Task Details and Project Details pages generated by the .NET MAUI mobile project template.
All interactive controls should be reachable in their logical visual order using TalkBack swipe navigation.
Root Cause
The Project and Category pickers are native .NET MAUI Picker controls hosted inside Syncfusion SfTextInputLayout wrappers. Their SemanticProperties.Description values were assigned to the SfTextInputLayout wrappers rather than to the interactive pickers. On Android, this caused the non-interactive wrapper to be exposed as the accessibility node instead of associating the semantic information directly with the native picker, which interrupted TalkBack forward-swipe navigation.
Description of Change
The semantic hints are now assigned directly to the interactive Picker controls, allowing TalkBack to focus and activate the pickers and continue navigating through the remaining page content.
Why Tests Were Not Added
This issue requires manual accessibility validation using TalkBack to verify the forward-swipe navigation and ensure that the semantic hint is read correctly. Since this behavior cannot be reliably validated through automated tests, no additional tests were added.
Issues Fixed
Fixes #38328
Screenshots
38328BeforeFix.mov
38328AfterFix.mov