Fluentui: Accessibility issue with ScrollablePane and Sticky components

Created on 9 Jul 2020  路  5Comments  路  Source: microsoft/fluentui

Environment Information

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

Describe the issue:


We currently use ScrollablePane and Sticky components in conjunction with DetailsList in our project, very similar to this example. When running the Accessibility Insights - Fast Pass, we have this issue : "Ensures aria-hidden elements do not contain focusable elements"

image

This is also seen in DetailsList Locked Header example from : https://developer.microsoft.com/en-us/fluentui#/controls/web/scrollablepane

Please provide a reproduction of the issue in a codepen:

codepen: https://codepen.io/kejatura/pen/zYrjVRd?editors=0010

  1. Scroll down the detailslist (doesn't need to be scrolled to the bottom)
  2. Launch Fast-Pass from Accessibility Insights for Web extension

Actual behavior:

Notice the error : "Ensures aria-hidden elements do not contain focusable elements"

Expected behavior:

Fixes mentioned: "Focusable content should have tabindex='-1' or be removed from the DOM"

Documentation describing expected behavior

Fixes mentioned: "Focusable content should have tabindex='-1' or be removed from the DOM"

Accessibility ScrollablePane Sticky Type

All 5 comments

I wasn't able to a repo within codepen - this one might be able to repro the issue in a different form.

@kejatura - I can't seem to repro either. could you point out explicitly which element is set with aria-hidden: true and which element is focusable within?

Hi @xugao, if you scroll down the detailslist (enabling the sticky header while scrolling) and run Fast Pass, it should have this error. The element that has the issue when I run the automated checks is:

@kejatura - thanks! i got the repro. Will look into fixing.

Note to dev, it looks wrong to me that we are setting aria-hidden to true the all the children element set it back to false:
image

Hi @xugao , our product in Dynamics also experiences the same bug. I wonder if you have an ETA for the fix or a timeline?
Thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

VincentBailly picture VincentBailly  路  3Comments

prashkan picture prashkan  路  3Comments

rickyp-ms picture rickyp-ms  路  3Comments

nekoya picture nekoya  路  3Comments

carruthe picture carruthe  路  3Comments