Repository navigation
docs(migration): add a 6.0 alpha line for the renamed FAB variants - #5276
Merged
Merged
Conversation
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.
|
Found potential problems with the pull request:
|
Apex Sentinel · ✅ Approve · review of
|
| 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
The 6.0.0-alpha.3 guide told apps to use the FAB variants
tonalPrimary,tonalSecondaryandtonalTertiary. #5110 renamed themprimaryContainer,secondaryContainerandtertiaryContainer, with the same colors and no aliases, so JavaScript code that still passes an old name throws at render unless it setscontainerColor. This adds a "6.0 alpha build" line and a diff to the FABvariantsection, like the guide's other alpha notes.Related issue
Part of #4991
Screenshots / Videos
None: docs only.
Test plan
Run
yarn buildandyarn previewindocsand open the 6.x migration guide at#variant-1. The new paragraph and diff render beforesize, and the heading ids are unchanged.