Skip to content

Add ActionList.GroupHeading.LeadingVisual #7968

Open

Description

@mattobee

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.

Activity

  1. ArushKhasru commented on Jun 10, 2026

    @ArushKhasru

    Hello sir, May i help you to solve this issue..??

  2. self-assigned this
    on Jun 10, 2026
  3. akshat-lakhera commented on Oct 20, 2026

    @akshat-lakhera

    Is this still wanted now that #7949 was closed as stale? I'd add a LeadingVisual next to GroupHeadingTrailingAction.tsx in packages/react/src/ActionList, register it in the GroupHeading slots behind a feature flag the way the earlier PR did, and cover it with stories and tests. If nobody else is on it, could you assign me?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions