Skip to content

GroupList doesn't support HTMLAttributes #15772

@nloyolag

Description

@nloyolag

Environment Information

  • Package version(s): @fluentui/react@^7.134.3
  • Browser and OS versions: Edge Chromium, Windows 10

Please provide a reproduction of the bug in a codepen:

https://codepen.io/nloyolag/pen/JjKLPpG?editable=true%3Dhttps%3A%2F%2Fdeveloper.microsoft.com%2F

Actual behavior:

When passing aria-labelledby to GroupList, the property is not exposed to the div containing the list. This behavior does work on the List component.

A colleague of mine digged into this and found that List supports the native HTML attributes, but GroupedList doesn't.

const divProps = getNativeProps<React.HTMLAttributes<HTMLDivElement>>(this.props, divProperties);

Expected behavior:

GroupedList supports HTML attributes, including aria-labelledby

Priorities and help requested:

Are you willing to submit a PR to fix? Yes, if we get the green light

Requested priority: Normal

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions