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.99k stars 1.72k forks source link

[Bug] ClearButtonVisibility on Entry is currently not accessible #3384

Open PureWeen opened 2 years ago

PureWeen commented 2 years ago

Description

Clearbutton is just a drawable set on the underlying TextView via this editText.SetCompoundDrawablesWithIntrinsicBounds(drawable, null, null, null)

So, it's not going to be reachable by a screen reader. This will mostly likely need to be solved via Custom Actions or by changing the current solution.

The native SearchView control is an EditText box with a reachable clear button so the fix here might be to switch to using a view for the clear opposed to a drawable. i.e. here's the SearchView layout on android. Notice how the ImageView's have focusable/contentDesc's set

https://cs.android.com/androidx/platform/frameworks/support/+/androidx-main:appcompat/appcompat/src/main/res/layout/abc_search_view.xml;l=20?q=abc_search_view

v-longmin commented 2 years ago

@PureWeen Could you share your repro project/solution, thanks?

ghost commented 2 years ago

Hi @PureWeen. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

ghost commented 2 years ago

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. If it is closed, feel free to comment when you are able to provide the additional information and we will re-investigate.

ghost commented 2 years ago

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. If it is closed, feel free to comment when you are able to provide the additional information and we will re-investigate.

jinxinjuan commented 1 year ago

Verified this issue with Visual Studio Enterprise 17.6.0 Preview 3.0. Still repro on a MAUI sample project. MauiApp10.zip