Add support for a leading visual on ActionList.Group headings, via a new ActionList.GroupHeading.LeadingVisual component. This mirrors the existing ActionList.GroupHeading.TrailingAction (added in #7829, closing #2043) so the API is consistent on both sides of a group heading.
<ActionList>
<ActionList.Group>
<ActionList.GroupHeading as="h3">
<ActionList.GroupHeading.LeadingVisual>
<FileDirectoryIcon />
</ActionList.GroupHeading.LeadingVisual>
Custom fields
</ActionList.GroupHeading>
<ActionList.Item>…</ActionList.Item>
</ActionList.Group>
</ActionList>
Needed for the collapsed nav group popover in github/github-ui#22642, where a group heading needs a leading icon.
Add support for a leading visual on
ActionList.Groupheadings, via a newActionList.GroupHeading.LeadingVisualcomponent. This mirrors the existingActionList.GroupHeading.TrailingAction(added in #7829, closing #2043) so the API is consistent on both sides of a group heading.Needed for the collapsed nav group popover in github/github-ui#22642, where a group heading needs a leading icon.