-
Notifications
You must be signed in to change notification settings - Fork 6.8k
fix(material/schematics): migrate named arguments in define-typography-config #25907
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…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.
87ebd1b
to
ba302cf
Compare
* 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([ |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in #25949.
thank you @crisbeto ! |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
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.