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
22.24k stars 1.76k forks source link

Accesibility issue with Label selection in Windows and Android #18978

Open Kerubananthan3761 opened 12 months ago

Kerubananthan3761 commented 12 months ago

Description

I am experiencing the following scenario: I have a grid layout with 3-row definitions, and added the following items to the Grid as child in each row. Button in Row: 0, Label in Row:1, another Label in Row:2, and Scroll View in Row:2. The VerticalStackLayout is added as children for ScrollView and VerticalStackLayout 7 Labels as its children. The Scroll View visibility is set to false initially and changed its visibility in the button click event. If Accessibility is enabled, I am facing the below issues

  1. In windows, While selecting the Button using screen touch, the narrator narrates the button text but does not read the label text assigned using SemanticProperties.Description and once the the ScrollView is visible, while selecting the labels inside the scroll view, the narrator not read the SemanticProperties.Description text. Find the below video reference : ScrollViewSample.zip

  2. In Android Repeat the same procedure as Windows, While the scroll view is visible, if the labels inside the scroll view are selected, the selection moves to the label in the grid. Find the video reference below: scroll-sample.zip

Steps to Reproduce

  1. Create a new project in the .NET MAUI application.

  2. Add Button, Label and ScrollVIew in Grid layout like below

    image
  3. Handle Button click in .cs page like below

    image
  4. Run the Sample

  5. Turn Narrator ON if Windows / TalkBack if Android

  6. Repeat the selection process as in Description reference videos

Link to public reproduction project repository

https://github.com/dotnet/maui/files/13448956/ScrollViewSample.zip

Version with bug

8.0.3

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Android, Windows

Affected platform versions

Windows 11, Android 11

Did you find any workaround?

No

Relevant log output

No response

ghost commented 11 months ago

We've added this issue to our backlog, and we will work to address it as time and resources allow. If you have any additional information or questions about this issue, please leave a comment. For additional info about issue management, please read our Triage Process.