@@ -285,20 +285,30 @@ describe('v15 legacy components migration', () => {
285
285
old : [
286
286
`@use '@angular/material' as mat;` ,
287
287
`@include mat.core();` ,
288
- `@include mat.core(mat.define-typography-config());` ,
288
+ `@include mat.core(mat.define-typography-config(() ));` ,
289
289
`@include mat.core-theme(())` ,
290
290
] ,
291
291
new : [
292
292
`@use '@angular/material' as mat;` ,
293
293
`// TODO(v15): As of v15 mat.legacy-core no longer includes default typography styles.` ,
294
- `// Instead an explicit typography include has been automatically added here.` ,
295
- `// If you add typography styles elsewhere, you may want to remove this.` ,
294
+ `// The following line adds:` ,
295
+ `// 1. Default typography styles for all components` ,
296
+ `// 2. Styles for typography hierarchy classes (e.g. .mat-headline-1)` ,
297
+ `// If you specify typography styles for the components you use elsewhere, you should delete this line.` ,
298
+ `// If you don't need the default component typographies but still want the hierarchy styles,` ,
299
+ `// you can delete this line and instead use:` ,
300
+ `// \`@include mat.legacy-typography-hierarchy(mat.define-legacy-typography-config());\`` ,
296
301
`@include mat.all-legacy-component-typographies();` ,
297
302
`@include mat.legacy-core();` ,
298
303
`// TODO(v15): As of v15 mat.legacy-core no longer includes default typography styles.` ,
299
- `// Instead an explicit typography include has been automatically added here.` ,
300
- `// If you add typography styles elsewhere, you may want to remove this.` ,
301
- `@include mat.all-legacy-component-typographies(mat.define-legacy-typography-config());` ,
304
+ `// The following line adds:` ,
305
+ `// 1. Default typography styles for all components` ,
306
+ `// 2. Styles for typography hierarchy classes (e.g. .mat-headline-1)` ,
307
+ `// If you specify typography styles for the components you use elsewhere, you should delete this line.` ,
308
+ `// If you don't need the default component typographies but still want the hierarchy styles,` ,
309
+ `// you can delete this line and instead use:` ,
310
+ `// \`@include mat.legacy-typography-hierarchy(mat.define-legacy-typography-config(()));\`` ,
311
+ `@include mat.all-legacy-component-typographies(mat.define-legacy-typography-config(()));` ,
302
312
`@include mat.legacy-core();` ,
303
313
`@include mat.legacy-core-theme(())` ,
304
314
] ,
0 commit comments