Skip to content

docs(migration): add a 6.0 alpha line for the renamed FAB variants - #5276

Merged
Doberjohn merged 1 commit into
mainfrom
@Doberjohn/fab-alpha-variant-guide
Nov 21, 2026
Merged

Doberjohn merged 1 commit into
mainfrom
@Doberjohn/fab-alpha-variant-guide

Conversation

@Doberjohn

Copy link
Copy Markdown
Collaborator

Motivation

The 6.0.0-alpha.3 guide told apps to use the FAB variants tonalPrimary, tonalSecondary and tonalTertiary. #5110 renamed them primaryContainer, secondaryContainer and tertiaryContainer, with the same colors and no aliases, so JavaScript code that still passes an old name throws at render unless it sets containerColor. This adds a "6.0 alpha build" line and a diff to the FAB variant section, like the guide's other alpha notes.

Related issue

Part of #4991

Screenshots / Videos

None: docs only.

Test plan

Run yarn build and yarn preview in docs and open the 6.x migration guide at #variant-1. The new paragraph and diff render before size, and the heading ids are unchanged.

The 6.0.0-alpha.3 guide told apps to use the FAB variants tonalPrimary,
tonalSecondary and tonalTertiary. They are now primaryContainer,
secondaryContainer and tertiaryContainer, with no aliases, so JavaScript
code that still passes an old name throws at render unless it sets
containerColor. Add an "If your app was written for a 6.0 alpha build"
line to the FAB variant section, like the guide's other notes for apps
written for an alpha.

Part of #4991. Follows #5110.
@github-actions

Copy link
Copy Markdown

Found potential problems with the pull request:

  • Screenshot or video evidence is missing. Make sure to include one if it affects the UI.

@apex-sentinel-staging

Copy link
Copy Markdown

Apex Sentinel · ✅ Approve · review of e28a5c7

No open findings.

Not in the reviewers' prompt (1 file)
  • docs/6.x/docs/guides/migration.md: no reviewer was selected for this change

Reviewed with this repository's own Sentinel configuration (7ab2640caac1).

💬 Talking to Sentinel

In a finding's thread, reply with:

Command What it does
@apex-sentinel-staging note <context> Adds context; Sentinel re-checks the cited code
@apex-sentinel-staging pivot <why> Says the finding is wrong; Sentinel re-checks the cited code
@apex-sentinel-staging like Marks the finding as useful
@apex-sentinel-staging dislike <why> Marks it as not useful, so it is not raised again

On this conversation, comment @apex-sentinel-staging review to run a full review once again.

@Doberjohn
Doberjohn merged commit 9029fbc into main Nov 21, 2026
14 checks passed
@Doberjohn
Doberjohn deleted the @Doberjohn/fab-alpha-variant-guide branch November 21, 2026 20:15
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.

1 participant