maui icon indicating copy to clipboard operation
maui copied to clipboard

Flyout items can vanish when arrowing down through a flyout

Open gbarkerz opened this issue 2 years ago • 9 comments

Description

When arrowing down through a Maui Flyout, items below the 2nd item in the flyout can visually vanish, leaving only space where they once were.

Before. Alt: A test .NET Maui app running on Windows. Its flyout is open, showing items of "First", "Second", "Third", "Fourth", and "Fifth". Keyboard focus feedback is shown at the first item in the flyout.

Flyout1

After. Alt: A test .NET Maui app running on Windows. Its flyout is open, showing items of "First" and "Second", with keyboard focus feedback showing on the second item. No other items are shown, yet the flyout is large enough to contain multiple other items.

Flyout2

Steps to Reproduce

  1. Build and run this test app for Windows, https://github.com/gbarkerz/MyVeryFirstMauiApp.
  2. Tab to move keyboard focus to the Open Navigation button at the top left corner of the app.
  3. Press Space to invoke the flyout.
  4. Press DownArrow to move keyboard focus to the first item in the flyout.
  5. Press DownArrow again to move keyboard focus to the second item in the flyout.

Result: Following the second DownArrow press, all items following the second item visually vanish.

Note: If I then Alt+Tab away and back to the app, press Escape to close the flyout, re-open the flyout, the issue doesn't seem to happen after that until I restart the app.

My version of dotnet is 6.0.400-preview.22330.6.

Version with bug

Unknown/Other (please specify)

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

net6.0-windows10.0.19041.0

Did you find any workaround?

No response

Relevant log output

No response

gbarkerz avatar Jul 19 '22 14:07 gbarkerz

GitHubTags: #.NET MAUI; #A11ySev1; #A11yMAS; #A11yTCS; #Benchmark; #DesktopApp; #Win11; #WCAG2.1.1; #GH_.NETMAUI_Win32_Apr2022; #AILimited; #Win32; #Keyboard;

keerthiduvvuri avatar Sep 16 '22 11:09 keerthiduvvuri

@PureWeen this should likely be marked as an accessibility issue.

merriemcgaw avatar Sep 29 '22 20:09 merriemcgaw

@gbarkerz @PureWeen do you know if the flyout items are still available in the UIA tree?

merriemcgaw avatar Oct 13 '22 00:10 merriemcgaw

Hi @merriemcgaw, I'm not set up to test it just at the moment, but looking at this, https://twitter.com/gbarkerZ/status/1551965741284573184?s=20&t=OMFyiEoaIT-7MIiVIfvumQ, it seems I ran Accessibility Insights after the visuals vanished, and the contents of the list items had gone from UIA too. All that was left from the item was the item itself, and given that the item's name was meaningless to the user, there was no way for anyone to access the original helpful text on the item.

gbarkerz avatar Oct 13 '22 11:10 gbarkerz

Hi @merriemcgaw, I'm not set up to test it just at the moment, but looking at this, https://twitter.com/gbarkerZ/status/1551965741284573184?s=20&t=OMFyiEoaIT-7MIiVIfvumQ, it seems I ran Accessibility Insights after the visuals vanished, and the contents of the list items had gone from UIA too. All that was left from the item was the item itself, and given that the item's name was meaningless to the user, there was no way for anyone to access the original helpful text on the item.

I think this part of it has been resolved. Now that we propagate the correct description values to the flyout items the UIA info is still present. I've also noticed if you close and reopen the flyout everything reappears and then never vanishes again. It's only the initial open/navigation that's buggy :-/

image

PureWeen avatar Oct 13 '22 20:10 PureWeen

This might also be resolved once we bump to WinAppSDK 1.2

I'm testing MAUI with WinAppSDK 1.2 and I'm unable to reproduce the issue there

image

PureWeen avatar Oct 13 '22 20:10 PureWeen

That's awesome! You will be moving in .NET 8?

merriemcgaw avatar Oct 13 '22 20:10 merriemcgaw

That's awesome! You will be moving in .NET 8?

Once WinAppSDK 1.2 goes stable we'll bump .NET 7 up to 1.2 in a SR

PureWeen avatar Oct 13 '22 20:10 PureWeen

Great news!

merriemcgaw avatar Oct 13 '22 21:10 merriemcgaw

WinAppSDK 1.1.5

2022-10-20_15-50-54

WinAppSDK 1.2.220930.4-preview2

2022-10-20_15-51-03

Project you can test

You will need to use Visual Studio 17.4 GA

ShellFlyoutKeyboard.zip

PureWeen avatar Oct 20 '22 20:10 PureWeen

Duplicate of #11522

PureWeen avatar Nov 21 '22 19:11 PureWeen