dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
21.98k stars 1.72k forks source link

SemanticProperties do not work on ToolbarItems #23623

Open SovdEi opened 1 month ago

SovdEi commented 1 month ago

Description

When setting SemanticProperties.Description or SemanticProperties.Hint on a ToolbarItem both do not work. When I try to use them on other controls, like a Button it works as expected. I have tested the accessibility only on iOS and Android. On iOS I have used the Accessibility Inspector and an iOS Simulator. Here it doesn't show the Description and the Hint. For Android I have used Talkback on an Android Emulator. Here the device doesn't read the desired Description or the Hint.

Steps to Reproduce

  1. Create a new MAUI App
  2. Put the Main Page in a Navigation Page
  3. Put in a ToolbarItem into the MainPages ContentPage.ToolbarItems Property
  4. Set SemanticProperties.Hint and SemanticProperties.Description on the Toolbar to any value

Link to public reproduction project repository

No response

Version with bug

8.0.40 SR5

Is this a regression from previous behavior?

No, this is something new

Last version that worked well

Unknown/Other

Affected platforms

iOS, Android, I was not able to test on other platforms

Affected platform versions

iOS 17.2; Android 14.0

Did you find any workaround?

You can still use the Deprecated AutomationProperties.Name instead of SemanticProperties.Description.

Relevant log output

No response

github-actions[bot] commented 1 month ago

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.