Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Accessibility issue while using @fluentui/react/lib/GroupedList #31290

Open
2 tasks done
AdityaShankarMishra opened this issue May 7, 2024 · 0 comments
Open
2 tasks done
Assignees

Comments

@AdityaShankarMishra
Copy link

AdityaShankarMishra commented May 7, 2024

Library

React / v8 (@fluentui/react)

System Info

We are currently using
@fluentui/react/lib/GroupedList, which includes an expand-collapse button in the group header, as depicted in the screenshot below. However, we've encountered an issue where the
tabIndex
property for the expand-collapse button is automatically set to -1. This is causing the following accessibility issue during keyboard navigation. 

"By invoking enter/space/alt + down/arrows keys Expand/collapse button is not accessible due to which table present under "Protected Item details" is not displayed".  
 
However in narrator when scan mode is on, it is accessible with down arrow key. As I think the "down-arrow" key is compensating for the tabindex="-1" we are seeing in the DOM. However with NVDA it is not working.

Are you reporting Accessibility issue?

Yes

Reproduction

Repro 1. Open #URL: https://aka.ms/AzureBusinessContinuity/release 2. Search "Business Continuity Center" on the home page and select it. 3. The "Overview" page opens, Select the "Protected items "option from left navigation bar. 4. Navigate the "Protected items" page. 5. Navigate the "Protected Items" page and navigate to the table. 6. Under the "Protected Items" table columns select one of the items. 7. Navigate the selected "Protected Items preview" page. 8. Navigate to "Protected Item details" expand/collapse button. 9. Now, check whether expand/collapse button is accessible by keyboard or not.

Bug Description

Actual Behavior

Expand/collapse button present for 'Protected item details" tree grid is not keyboard accessible.
###Observation:

  • By invoking enter/space/alt + down/arrows keys Expand/collapse button is not accessible due to which table present under "Protected Item details" is not displayed.
  • However, the Expand/collapse button is accessible on mouse click.

Expected Behavior

Expand/collapse button present for 'Protected item details" tree grid should be keyboard accessible.
image

Logs

No response

Requested priority

Blocking

Products/sites affected

No response

Are you willing to submit a PR to fix?

yes

Validations

  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • The provided reproduction is a minimal reproducible example of the bug.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants