Skip to content

[Bug]: DetailsList has aria-required-children issue when testing a11y #26330

@clgutier

Description

@clgutier

Library

React / v8 (@fluentui/react)

System Info

System:
    OS: Windows 10 10.0.22621
    CPU: (8) x64 11th Gen Intel(R) Core(TM) i7-11370H @ 3.30GHz
    Memory: 10.76 GB / 31.84 GB
  Browsers:
    Edge: Spartan (44.22621.1105.0), Chromium (107.0.1418.62)
    Internet Explorer: 11.0.22621.1

Are you reporting Accessibility issue?

yes

Reproduction

https://codepen.io/mizeljko/pen/oNMYOdo

Bug Description

Actual Behavior

Used the example codepen provided in documentation: https://developer.microsoft.com/en-us/fluentui#/controls/web/detailslist/grouped

When testing with axe-playwright automated tests, DetailsList fails with error aria-required-children. Verified the same happens in minimal repro for both DetailsHeader and DetailsRow:
image
image

To repro I used axe DevTools extension (can also repro if using playwright to test the component)

Note: Issue is still not shown in A11y Insights tool since it doesn't have most recent version of axe-core. Axe-core rules where recently updated, which is why this error is showing up now.

Expected Behavior

Component shouldn't fail with aria-required-children.

Logs

No response

Requested priority

Blocking

Products/sites affected

UCI / Dynamics

Are you willing to submit a PR to fix?

no

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions