Skip to content

[Android] VoiceOver on Toolbar Item #29596

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

kubaflo
Copy link
Contributor

@kubaflo kubaflo commented May 20, 2025

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!

Issues Fixed

Fixes #29573
Fixes #23623

@Copilot Copilot AI review requested due to automatic review settings May 20, 2025 18:19
@kubaflo kubaflo requested a review from a team as a code owner May 20, 2025 18:19
@kubaflo kubaflo requested review from jfversluis and tj-devel709 May 20, 2025 18:19
@kubaflo kubaflo self-assigned this May 20, 2025
Copy link
Contributor

@Copilot Copilot AI left a 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 enhances the accessibility support for Android Toolbar items by configuring VoiceOver semantics.

  • Introduces a new helper method, SetSemanticProperties, to update accessibility information on Toolbar items.
  • Implements the AccessibilityDelegateCompatImpl to correctly set ContentDescription and HintText based on semantic properties.
  • Adds necessary AndroidX Core API references needed for the enhancements.
Comments suppressed due to low confidence (1)

src/Controls/src/Core/Platform/Android/Extensions/ToolbarExtensions.cs:354

  • Ensure that automated tests are added in TestCases.HostApp and TestCases.Shared.Tests to verify that the new accessibility delegate correctly applies the semantic properties (ContentDescription and HintText) on Toolbar items.
SetSemanticProperties(item, toolbar.FindViewById(menuitem.ItemId));

@dotnet-policy-service dotnet-policy-service bot added the community ✨ Community Contribution label May 20, 2025
Copy link
Contributor

Hey there @@kubaflo! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed.

@kubaflo kubaflo added platform/android area-controls-toolbar ToolBar t/a11y Relates to accessibility and removed community ✨ Community Contribution labels May 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

VoiceOver on Toolbar Item SemanticProperties do not work on ToolbarItems
1 participant