maui icon indicating copy to clipboard operation
maui copied to clipboard

CarouselView items are focusable

Open Redth opened this issue 3 years ago • 1 comments

Description

When using a CarouselView, the item container appears to be focusable when 'tabbing' through items. You can observe in the video that the entire item view turns 'gray' as it receives focus and tabbing again moves to the button.

The item view should not be focusable by default and setting AutomationProperties.IsInAccessibleTree="False" on the layout(s) inside the item template has no effect.

On android it appears that the SizedItemContentView container view is what receives focus, and probably needs to have Focusable=False set on it by default, or at least propagate up the focus value set on the immediate item within the template.

https://user-images.githubusercontent.com/271950/209175144-8625398d-43d9-4699-87eb-6719841a3277.mp4

Steps to Reproduce

Open the repro project, run it, use tab to focus between items.

Link to public reproduction project repository

https://github.com/Redth/MauiIssueRepros/tree/main/CarouselView/CarouselViewFocus12271

Version with bug

7.0 (current)

Last version that worked well

Unknown/Other

Affected platforms

Android, Windows

Affected platform versions

All

Did you find any workaround?

No response

Relevant log output

No response

Redth avatar Dec 22 '22 15:12 Redth

We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.

ghost avatar Dec 22 '22 15:12 ghost

Verified this issue with Visual Studio Enterprise 17.7.0 Preview 1.0. Can repro on android and windows platform with sample project.CarouselViewFocus12271

jinxinjuan avatar Jun 07 '23 08:06 jinxinjuan