Skip to content

feat!: modernize List-related components to the latest MD3 specs - #5224

Open
jacekAtCK wants to merge 17 commits into
callstack:mainfrom
jacekAtCK:feat/modernize-list-md3
Open

jacekAtCK wants to merge 17 commits into
callstack:mainfrom
jacekAtCK:feat/modernize-list-md3

Conversation

@jacekAtCK

@jacekAtCK jacekAtCK commented Nov 16, 2026 •

Copy link
Copy Markdown
Collaborator

Motivation

Takes over #5143 from @roksanaz, rebased on current main, with the review comments addressed.

Brings List.Item and List.Accordion in line with the latest MD3 list spec:

  • tokens, spacing and typography instead of hardcoded sizes
  • MD3 selected colors
  • expand and collapse animation on the accordion
  • typed leading and trailing slots on List.Item, which take precedence over left and right

Changes since #5143:

  • The accordion content animates its height inside a wrapper with overflow: hidden, so rows below move with it. The content stays mounted until collapse finishes. The chevron uses a CSS transition.
  • Accordion children that use the leading or trailing slot are not indented.
  • List.Image accepts a testID.
  • List.Item and List.Accordion use an inward focus ring, like other full-width rows.

Related issue

Closes #4976
Part of #4930

Screenshots / Videos

List.Accordion

List.Accordion on Android List.Accordion on web

List.Item screenshots are in #5143.

Video:

list-accordion.mp4

Test plan

Open the List example and:

  1. Compare one, two and three line rows against the spec.
  2. Expand and collapse an accordion. Check that the chevron and the content animate, and that the rows below move with the content.
  3. Expand a nested accordion inside an expanded one. Check that its content is not clipped.
  4. Check that a selected row uses the primary container colors.
  5. Check that the leading and trailing slots render and pick up the item color, including in a selected row.

@github-actions

Copy link
Copy Markdown

Found potential problems with the pull request:

  • The description is too long. Please keep it under 1000 characters.

@Doberjohn Doberjohn assigned Doberjohn and jacekAtCK and unassigned Doberjohn Nov 16, 2026
@Doberjohn Doberjohn added this to the 6.0.0-beta.0 milestone Nov 16, 2026
@jacekAtCK jacekAtCK changed the title feat: modernize List-related components to the latest MD3 specs feat!: modernize List-related components to the latest MD3 specs Nov 16, 2026

This branch has not been deployed

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: modernize List related components to the latest MD3 specs

4 participants