Skip to content
This repository was archived by the owner on May 1, 2024. It is now read-only.

[Bug] TabIndex ignored in Xamarin.Forms for Mac #11458

Closed
JohnHDev opened this issue Jul 16, 2020 · 1 comment
Closed

[Bug] TabIndex ignored in Xamarin.Forms for Mac #11458

JohnHDev opened this issue Jul 16, 2020 · 1 comment

Comments

@JohnHDev
Copy link

Description

TabIndex ignored in Xamarin.Forms for Mac

Steps to Reproduce

  1. Run the attached example with the Mac set as startup project
  2. 3 entries are displayed, press tab to change the currently selected

Expected Behavior

Order should be entry1, entry3 and then entry2

Actual Behavior

Order is as expressed, so entry1, entry2 and entry3

Basic Information

  • Version with issue:
  • Last known good version: None
  • IDE:
  • Platform Target Frameworks:
    • iOS:
    • Android:
    • UWP:
  • Android Support Library Version:
  • Nuget Packages:
  • Affected Devices:

Screenshots

Reproduction Link

XF4iOSAndroidMacDemo.zip

Workaround

None

@JohnHDev JohnHDev added s/unverified New report that has yet to be verified t/bug 🐛 labels Jul 16, 2020
@jsuarezruiz jsuarezruiz added p/macOS e/2 🕑 2 a/a11y 🔍 and removed s/unverified New report that has yet to be verified labels Jul 17, 2020
@samhouts samhouts added this to the 5.0.0 milestone Aug 13, 2020
@samhouts samhouts removed this from the 5.0.0 milestone Nov 2, 2020
@rachelkang
Copy link
Contributor

Hi, @JohnHDev - as elaborated in dotnet/maui#1646 and https://devblogs.microsoft.com/xamarin/the-journey-to-accessible-apps-meaningful-content-ordering/, we no longer advise that TabIndex be used. Unfortunately, the property was long misunderstood and misused.

Ideally, your app should not manipulate content ordering whatsoever - should you really need to, however, we recommend checking out SemanticOrderView from the XamarinCommunityToolkit, which has already proven to be a more accessible alternative.

If you haven't already, I also recommend updating to the latest version Xamarin.Forms or at least to Xamarin.Forms 5.0.0.2083, which has many accessibility improvements. These improvements include an experimental accessibility flag that addresses a lot of improvements in Android accessibility.

To leverage this flag on the latest versions of Xamarin Forms, the following code can be inserted in the App.xaml.cs file, following the InitializeComponent call and before the MainPage is set: Xamarin.Forms.Device.SetFlags(new List<string> { "Accessibility_Experimental"});

Let us know how that works for you!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants