Skip to content

Conversation

crisbeto
Copy link
Member

@crisbeto crisbeto commented Nov 2, 2022

define-typography-config changed the names of the typography levels in MDC which is a breaking change. This fix adds a migration to remap the arguments to their new names.

@crisbeto crisbeto added P2 The issue is important to a large percentage of users, with a workaround target: rc This PR is targeted for the next release-candidate labels Nov 2, 2022
@crisbeto crisbeto requested a review from amysorto November 2, 2022 12:25
…y-config

`define-typography-config` changed the names of the typography levels in MDC which is a breaking change. This fix adds a migration to remap the arguments to their new names.
@crisbeto crisbeto force-pushed the mdc-migration-typography branch from 87ebd1b to ba302cf Compare November 2, 2022 12:29
* Mapping between the renamed legacy typography levels and their new non-legacy names. Based on
* the mappings in `private-typography-to-2018-config` from `core/typography/_typography.scss`.
*/
const RENAMED_TYPOGRAPHY_LEVELS = new Map([
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know the non MDC typography levels have input but is not in the new one/being mapped. Is it just not able to be mapped? If so, we should probably add it somewhere in the migration doc.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, good catch. I'm leaning more towards adding an input level to the MDC config. I'll merge in the PR as is for now and will ping Miles when he's back since he set up the MDC configs.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Resolution: the schematic should remap input to body-1.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in #25949.

@crisbeto crisbeto added the action: merge The PR is ready for merge by the caretaker label Nov 2, 2022
@crisbeto crisbeto merged commit 350fa13 into angular:main Nov 2, 2022
crisbeto added a commit that referenced this pull request Nov 2, 2022
…y-config (#25907)

`define-typography-config` changed the names of the typography levels in MDC which is a breaking change. This fix adds a migration to remap the arguments to their new names.

(cherry picked from commit 350fa13)
@twerske
Copy link
Contributor

twerske commented Nov 2, 2022

thank you @crisbeto !

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Dec 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker P2 The issue is important to a large percentage of users, with a workaround target: rc This PR is targeted for the next release-candidate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants