fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

Fabric Panel focus order is improper with choice group in the panel

Open AkshanshSrivastava03 opened this issue 8 years ago • 6 comments

Bug Report

  • Package version(s): 5.55.1002
  • Browser and OS versions: Chrome

Describe the issue:

Panel focus order is improper when choice group is rendered within the Panel.

Actual behavior:

Suppose you have choice group with options "a" and "b" in the panel.

The focus first goes to cross button of the panel, then the choice group option "a", then tabbing will make you focus the page title/window etc.

If you select option "b" my moving key down, then the focus will remain inside the Panel which is the expected behavior. But by default, as "a" is selected, the focus goes out of the Panel

Expected behavior:

Focus order should remain inside the panel ony

If applicable, please provide a codepen repro:

https://codepen.io/AkshanshSrivastava03/pen/mXZpwp

AkshanshSrivastava03 avatar Mar 06 '18 10:03 AkshanshSrivastava03

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions to Fabric React!

stale[bot] avatar Apr 11 '18 01:04 stale[bot]

@AkshanshSrivastava03 is this still an issue? In testing this today, focus order seems to be:

["a", "b", "X (close cross)"]

https://s.codepen.io/AkshanshSrivastava03/debug/mXZpwp/DqADdEOJEXwA

Once a choice group item is selected UP/DOWN is required to toggle the selection similar to a standard radio group.

KevinTCoughlin avatar Apr 16 '18 21:04 KevinTCoughlin

@AkshanshSrivastava03, I'm going to close as this seems to not be an issue (provided an example). Please re-open if I misunderstood so that we can address properly. Thanks for using the library and for your feedback :).

KevinTCoughlin avatar Apr 19 '18 22:04 KevinTCoughlin

@KevinTCoughlin The code pen which you have attached has the repro. After radio button focus, tab should take me to the close button of the panel and not to the address bar. Get the focus on radion button "a", then press tab the focus goes to address bar (which is incorrect behavior). If you select "b", then the focus remains to move inside panel only (which is correct behavior).

I think the bug needs to re-open.

AkshanshSrivastava03 avatar May 18 '18 05:05 AkshanshSrivastava03

+1 We are also facing the same issue.

SumiranAgg avatar May 31 '18 11:05 SumiranAgg

:tada:This issue was addressed in #8053, which has now been successfully released as [email protected].:tada:

Handy links:

msft-github-bot avatar Feb 20 '19 21:02 msft-github-bot