From e28a5c7764d75e933e5c8acdc5accb315b26528d Mon Sep 17 00:00:00 2001 From: Doberjohn Date: Sat, 21 Nov 2026 09:25:50 +0200 Subject: [PATCH] docs(migration): add a 6.0 alpha line for the renamed FAB variants 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. --- docs/6.x/docs/guides/migration.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/6.x/docs/guides/migration.md b/docs/6.x/docs/guides/migration.md index 1472e27002..0b0b13c650 100644 --- a/docs/6.x/docs/guides/migration.md +++ b/docs/6.x/docs/guides/migration.md @@ -1686,6 +1686,13 @@ A FAB without a `variant` keeps its 5.x colors. + ``` +If your app was written for a 6.0 alpha build, rename the `tonalPrimary`, `tonalSecondary` and `tonalTertiary` variants to `primaryContainer`, `secondaryContainer` and `tertiaryContainer`. The colors are the same. The old names have no aliases, so in JavaScript a `FAB`, a `FAB.Extended` or the `FAB.Menu` trigger with one of them throws at render. One that also sets `containerColor` renders, but a `FAB.Menu` then gives its close button and items the tertiary colors. + +```diff +- ++ +``` + #### `size` - **`size="small"`** and **`small`** (40dp) were removed. The smallest FAB is now `size="default"` (56dp).